DTD is a set of grammatical rules for tags. It is part of the XML1.0 version specification, is the verification mechanism of html files, and is part of the composition of html files.
DTD: Three document types: S (Strict), T (Transitional), F (Frameset).
Strict: Use this type if you need clean markup without clutter in the presentation layer. Please use with Cascading Style Sheets (CSS)
Transitional: DTD can contain rendering attributes and elements that the W3C expects to be moved into the style sheet. Use
Frameset if your readers are using browsers that don't support Cascading Style Sheets (CSS) and you have to use HTML's rendering features: DTD should be used for documents with frames. Except that the frameset element replaces the body element, Frameset DTD is equivalent to Transitional DTD
html5 basically does not have the strict requirements of XHTML 1.0 Transitional, and simplifies many things and can be used directly
HTML5
??????????????????????????????
xhtml 1.1:
xhtml 1.1 plus mathml plus svg:
??????????????????????????????
html 4.01 strict:
html 4.01 transitional:
html 4.01 frameset:
?????? ????????????????????????
xhtml 1.0 strict:
xhtml 1.0 transitional:
xhtml 1.0 frameset:
??????????????? ??????????????????
html 3.2:
?? ??????????????????????????????
html 2 (the number 2 represents the version number):
Attached is an old version tag comparison DTD document:
| Description | DTD td> | |||||||||||||||||||||||||||
Define the document type. | STF | ||||||||||||||||||||||||||||
Define HTML document. | STF | ||||||||||||||||||||||||||||
Define the body of the document. | STF | ||||||||||||||||||||||||||||
to
| Define HTML title. | STF | |||||||||||||||||||||||||||
| Define paragraphs. | STF | |||||||||||||||||||||||||||
| Define simple line breaks. | STF | |||||||||||||||||||||||||||
| Define horizontal lines. | STF | |||||||||||||||||||||||||||
Define comments. | STF |
| Description
| DTD | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Define bold text. STF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deprecated. Define text font, size and color | TF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Define italic text. | STF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Define emphasis text. | STF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Define large text. | STF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Define a stronger tone of emphasis for the text. | STF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Define small text. | STF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Define superscript text. | STF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Define subscript text. | STF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Define the direction of the text. | STF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deprecated. Defines underlined text. | TF |
Tags | Description | DTD |
| Define preformatted text | STF |
| Define computer code text. | STF |
Define typewriter text. | STF | |
Define keyboard text. | STF | |
Define the variable part of the text. | STF | |
Define definition items. | STF | |
Define computer code samples. | STF | |
| Deprecated. Define preformatted text. |
tag | Description | DTD |
Define an abbreviation with only the first letter. | STF | |
Define abbreviations. | STF | |
Define contact information for the document author or owner. | STF | |
| Define block references. | STF |
| Deprecated. Define centered text. | TF |
| Define short quotes. | STF |
Define citation. | STF | |
The definition is inserted into the text. | STF | |
| Define deleted text. | STF |
| Deprecated. Defines strikethrough text. | TF |
| Deprecated. Defines strikethrough text. | TF |
Tags | Description | DTD |
The window or frame that defines the frameset. | F | |
Define the frameset. | F | |
| Define alternative content for users who don't support frames. | TF |
Define inline frames. | TF |
Tags | Description | DTD |
Define an HTML form for user input. | STF | |
Define input controls. | STF | |
Define a multi-line text input control. | STF | |
Define button. | STF | |
Define a selection list (drop-down list). | STF | |
Define combinations of related options in a selection list. | STF | |
Define the options in the selection list. | STF | |
Define the annotation of the input element. | STF | |
Define the border around the elements in the form. | STF | |
Define the title of the fieldset element. | STF | |
| Deprecated. Defines a searchable index associated with the document. | TF |
Tags | Description | DTD |
| Define an unordered list. | STF |
| Define an ordered list. | STF |
| Define the items of the list. | STF |
| Deprecated. Define directory listing. | TF |
| Define definition list. | STF |
| Define the items in the definition list. | STF |
| Define the description of the item in the definition list. | STF |
Deprecated. Define menu list. | TF |
Tags | Description | DTD |
| Define the image. | STF |
Define image map. | STF | |
Define the area inside the image map. | STF |
|

HTMLtagsareessentialforstructuringwebpages,enhancingaccessibility,SEO,andperformance.1)Theyareenclosedinanglebracketsandusedinpairstocreateahierarchicalstructure.2)SemantictagslikeandimproveuserexperienceandSEO.3)Creativetagslikeenabledynamicgraphics

Self-closingtagsinHTMLandXMLaretagsthatclosethemselveswithoutneedingaseparateclosingtag,simplifyingmarkupstructureandenhancingcodingefficiency.1)TheyareessentialinXMLforelementswithoutcontent,ensuringwell-formeddocuments.2)InHTML5,usageisflexiblebutr

To build a website with powerful functions and good user experience, HTML alone is not enough. The following technology is also required: JavaScript gives web page dynamic and interactiveness, and real-time changes are achieved by operating DOM. CSS is responsible for the style and layout of the web page to improve aesthetics and user experience. Modern frameworks and libraries such as React, Vue.js and Angular improve development efficiency and code organization structure.

Boolean attributes are special attributes in HTML that are activated without a value. 1. The Boolean attribute controls the behavior of the element by whether it exists or not, such as disabled disable the input box. 2.Their working principle is to change element behavior according to the existence of attributes when the browser parses. 3. The basic usage is to directly add attributes, and the advanced usage can be dynamically controlled through JavaScript. 4. Common mistakes are mistakenly thinking that values need to be set, and the correct writing method should be concise. 5. The best practice is to keep the code concise and use Boolean properties reasonably to optimize web page performance and user experience.

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.


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

SublimeText3 English version
Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Chinese version
Chinese version, very easy to use

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
