


XHTML tutorial: The difference between Transitional and Strict_HTML/Xhtml_Web page production
In fact, XHTML 1.0 is divided into two types (three types if you add Frameset DOCTYPE, which will not be discussed in this article), Transitional and Strict DOCTYPEs. And HTML 4.01 also has the same documentation statement.
In today's promotion of Web standards, those who advocate Web standards often say that XHTML is more strict than HTML. Of course, it is true in a sense. For example, it requires all tags to be closed and all attributes to be quoted. But in fact, XHTML 1.0 is divided into two types (three types if you add Frameset DOCTYPE, which will not be discussed in this article), Transitional and Strict DOCTYPEs. And HTML 4.01 also has the same documentation statement.
You can see the meaning literally: Transitional DOCTYPEs are just to achieve the transition from the old era to the new era, and Strict DOCTYPEs are the default document declaration, which is very important for constructing HTML 4.01 and XHTML 1.0 is applicable.
Using Transitional DOCTYPE is usually because the code contains too many old writing methods, and it is difficult to completely convert to Strict DOCTYPE at once. But Strict DOCTYPE should be your goal. It encourages and even sometimes forces you to separate structure from presentation and write all presentation layer code in CSS. HTML 4 Document Type Definition:
This HTML 4.01 Strict DTD does not include presentation layer attributes and tags. W3C will gradually phase out these attributes and tags. You can completely use style sheets to achieve this. You should use a Strict DTD. For support of presentation properties and tags, use a Transitional DTD.
Using Strict DOCTYPE also has the advantage that it allows browsers to use their most strict and (to a certain extent) most standards-compliant mode to render the page.
Tommy Olsson explains the benefits of using Strict very well in the Web Standards Group’s Ten questions for Tommy Olsson:
I think using Strict DTD, whether it is HTML 4.01 Strict or XHTML 1.0 Strict, is far more important than discussing whether to use HTML or XHTML. It represents the quality of the future Internet. It separates structure and presentation, making maintaining a site very easy.
For those who are new to web standards and correct, semantic structures, it is important to understand the difference between Transitional and Strict DOCTYPEs. For a more detailed list, please refer to: XHTML: Differences between Strict & Transitional, Comparison of Strict and Transitional XHTML and XHTML1.0 Element Attributes by DTD.
For those who are preparing to move to Strict, there are some differences between the two that may cause developers to make mistakes, which I will talk about next. Tags not supported under Strict DOCTYPEs center font iframe srike u Properties not supported under Strict DOCTYPEs align (table-related support: col, colgroup, tbody, td, tfoot, th, thead, and tr) language background bgcolor border (table support) height (supported by img and object) hspace name (supported in HTML 4.01 Strict, not supported by form and img in XHTML 1.0 Strict) noshade nowrap target text, link, vlink, and alink vspace width (img, object, table, col, and colgroup are supported) The difference between content models
The content model of an element type describes what instances of the element type can be contained. At this point, the biggest difference between the two document declarations is that blockquote, body, and form elements can only contain block-level elements, such as: Text and images are not allowed to be included directly in the body and must be included in block-level elements such as p or div. The input element cannot be directly one level below the form element. The text within the blockquote element must be contained by block-level elements such as p or div. Leave all performance to CSS and adhere to Strict standards
In the process of transitioning to Strict DOCTYPEs, it is more effective to know what each element does than what each element looks like.
Think about structure and semantics first, worry about performance later.

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.

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

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.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver CS6
Visual web development tools