


What is the difference between the strict version and the transitional version of XHTML?
If anyone has the strict version of XHTML specification, please share it, thank you!
Reply to the discussion (solution)
Please refer to the poster
http://www.w3school.com.cn/xhtml/xhtml_dtd.asp
The strict version has stricter standards for HTML than the transitional version. However, with the current development momentum of HTML5, this version is unlikely to be applied. In the current widespread web, there are more foreign interfaces than domestic interfaces. With the characteristics of China, you can learn about it, but don't pay too much attention to it. The transitional version is already satisfied with the display of most of the existing pages.
The strict version has stricter HTML specification requirements than the transitional one.
That is, XHTML 1.0 requires the use of XML syntax. In other words, all attributes must use lowercase letters, all elements must also use lowercase letters, all attribute values must be quoted, and you must remember to use closing tags. Remember to use self-closing tags for img and br.
Judging from the content of the specification itself, it is actually the same, there is no difference. The difference is the coding style, because for the browser, there is no problem reading web pages that comply with the HTML 4.01, HTML 3.2, or XHTML 1.0 specifications. To the browser, these web pages are the same and will generate the same DOM. Tree. It's just that people prefer XHTML 1.0 because many people agree with its stricter coding style.
XHTML 1.0 was followed by XHTML 1.1, except that the number after the decimal point was added with a 1, and from a vocabulary perspective, there was nothing new in the specification itself, the elements were the same, and the attributes were also the same. But with XHTML 1.1, the only change is that you must mark your documents as XML documents. When using XHTML 1.0, you could also mark the document as HTML, and that's exactly what we did, otherwise marking the document as XML would probably drive people crazy.
Another difference is the error handling model. The error handling model of XHTML 1.1 and XML is the same. It stops parsing when an error is encountered.
If you mark XHTML 1.1 as an XML document type, assuming you open the document in Firefox, and there is an ampersand (&) in the document that is not encoded correctly, even if this is the only error in the entire page, you will see There will also be a yellow screen and the browser is dead. Firefox will say: "No way, there is an error in the page, you can't see this page.

HTML code can be cleaner with online validators, integrated tools and automated processes. 1) Use W3CMarkupValidationService to verify HTML code online. 2) Install and configure HTMLHint extension in VisualStudioCode for real-time verification. 3) Use HTMLTidy to automatically verify and clean HTML files in the construction process.

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version
God-level code editing software (SublimeText3)