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 |
|

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati


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

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

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

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
