search
HomeWeb Front-endHTML TutorialSummary of DTD usage in html_html/css_WEB-ITnose

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:

标签

描述

DTD

 

定义文档类型。

STF

定义 HTML 文档。

STF

定义文档的主体。

STF

to

定义 HTML 标题。

STF

定义段落。

STF


定义简单的折行。

STF


定义水平线。

STF

定义注释。

STF

Tag
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

Define bold text.

标签

描述

DTD

定义粗体文本。

STF

不赞成使用。定义文本的字体、尺寸和颜色

TF

定义斜体文本。

STF

定义强调文本。

STF

定义大号文本。

STF

定义语气更为强烈的强调文本。

STF

定义小号文本。

STF

定义上标文本。

STF

定义下标文本。

STF

定义文本的方向。

STF

不赞成使用。定义下划线文本。

TF

Tag

Description

标签

描述

DTD

 

定义预格式文本

STF

定义计算机代码文本。

STF

定义打字机文本。

STF

定义键盘文本。

STF

定义文本的变量部分。

STF

定义定义项目。

STF

定义计算机代码样本。

STF

不赞成使用。定义预格式文本。

 

DTD

标签

描述

DTD

定义只取首字母的缩写。

STF

定义缩写。

STF

定义文档作者或拥有者的联系信息。

STF

定义块引用。

STF

不赞成使用。定义居中文本。

TF

定义短的引用。

STF

定义引用(citation)。

STF

定义被插入文本。

STF

定义被删除文本。

STF

不赞成使用。定义加删除线的文本。

TF

不赞成使用。定义加删除线的文本。

TF

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

Define anchor.

标签

描述

DTD

定义锚。

STF

定义文档与外部资源的关系。

STF

Tag

Description

标签

描述

DTD

定义框架集的窗口或框架。

F

定义框架集。

F

定义针对不支持框架的用户的替代内容。

TF

定义内联框架。

TF

DTD

标签

描述

DTD

定义供用户输入的 HTML 表单。

STF

定义输入控件。

STF

定义多行的文本输入控件。

STF

定义按钮。

STF

定义选择列表(下拉列表)。

STF

定义选择列表中相关选项的组合。

STF

定义选择列表中的选项。

STF

定义 input 元素的标注。

STF

定义围绕表单中元素的边框。

STF

定义 fieldset 元素的标题。

STF

不赞成使用。定义与文档相关的可搜索索引。

TF

标签

描述

DTD

定义无序列表。

STF

定义有序列表。

STF

  • 定义列表的项目。

    STF

    不赞成使用。定义目录列表。

    TF

    定义定义列表。

    STF

    定义定义列表中的项目。

    STF

    定义定义列表中项目的描述。

    STF

    不赞成使用。定义菜单列表。

    TF

    STF

    标签

    描述

    DTD

    Summary of DTD usage in html_html/css_WEB-ITnose

    定义图像。

    STF

    定义图像映射。

    STF

    定义图像地图内部的区域。

    STF

    Define the document's relationship to external resources. STF
    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
    Summary of DTD usage in html_html/css_WEB-ITnose Define the image. STF
    Define image map. STF
    Define the area inside the image map. STF

    标签

    描述

    DTD

    定义表格

    STF

    定义表格标题。

    STF

    定义表格中的表头单元格。

    STF

    定义表格中的行。

    STF

    定义表格中的单元。

    STF

    定义表格中的表头内容。

    STF

    定义表格中的主体内容。

    STF

    定义表格中的表注内容(脚注)。

    STF

    定义表格中一个或多个列的属性值。

    STF

    定义表格中供格式化的列组。

    STF

    Tag

    Description

    标签

    描述

    DTD

    定义文档的样式信息。

    STF

    定义文档中的节。

    STF

    定义文档中的节。

    STF

    DTD

    标签

    描述

    DTD

    定义关于文档的信息。

    STF

    定义文档的标题。

    STF

    定义关于 HTML 文档的元信息。

    STF

    定义页面中所有链接的默认地址或默认目标。

    STF

    不赞成使用。定义页面中文本的默认字体、颜色或尺寸。

    TF

    Definition table

    标签

    描述

    DTD

    <script></script>

    定义客户端脚本。

    STF

    定义针对不支持客户端脚本的用户的替代内容。

    STF

    不赞成使用。定义嵌入的 applet。

    TF

    定义嵌入的对象。

    STF

    定义对象的参数。

    STF

    STF

    td>

    Define the table title.

    STF

    Define the header cell in the table.

    STF

    Define the rows in the table. STF
    Define the cells in the table. STF
    Define the header content in the table. STF
    Define the main content in the table. STF
    Define the content of table notes (footnotes) in the table. STF
    Define attribute values ​​for one or more columns in the table. STF
    Define column groups in the table for formatting. STF
    Tags Description DTD
    Define the style information of the document. STF
    Define sections in the document. STF
    Define sections in the document. STF
    Tags Description DTD
    Define information about the document. STF
    Define the title of the document. STF
    Define meta-information about the HTML document. STF
    Define the default address or default target for all links in the page. STF
    Deprecated. Define the default font, color, or size for text on the page. TF
    Tags Description DTD
    <script><🎜> </script> Define client script. STF
    Define alternative content for users who do not support client-side scripting. STF
    Deprecated. Define embedded applets. TF
    Define embedded objects. STF
    Define the parameters of the object. STF
    Statement
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?Mar 04, 2025 pm 12:32 PM

    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,

    How do I use HTML5 form validation attributes to validate user input?How do I use HTML5 form validation attributes to validate user input?Mar 17, 2025 pm 12:27 PM

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

    How to efficiently add stroke effects to PNG images on web pages?How to efficiently add stroke effects to PNG images on web pages?Mar 04, 2025 pm 02:39 PM

    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

    What are the best practices for cross-browser compatibility in HTML5?What are the best practices for cross-browser compatibility in HTML5?Mar 17, 2025 pm 12:20 PM

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

    What is the purpose of the <datalist> element?What is the purpose of the <datalist> element?Mar 21, 2025 pm 12:33 PM

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

    What is the purpose of the <meter> element?What is the purpose of the <meter> element?Mar 21, 2025 pm 12:35 PM

    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

    How do I use the HTML5 <time> element to represent dates and times semantically?How do I use the HTML5 <time> element to represent dates and times semantically?Mar 12, 2025 pm 04:05 PM

    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

    What is the purpose of the <progress> element?What is the purpose of the <progress> element?Mar 21, 2025 pm 12:34 PM

    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

    See all articles

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    AI Hentai Generator

    AI Hentai Generator

    Generate AI Hentai for free.

    Hot Article

    R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
    2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
    Repo: How To Revive Teammates
    1 months agoBy尊渡假赌尊渡假赌尊渡假赌
    Hello Kitty Island Adventure: How To Get Giant Seeds
    4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

    Hot Tools

    SAP NetWeaver Server Adapter for Eclipse

    SAP NetWeaver Server Adapter for Eclipse

    Integrate Eclipse with SAP NetWeaver application server.

    EditPlus Chinese cracked version

    EditPlus Chinese cracked version

    Small size, syntax highlighting, does not support code prompt function

    Dreamweaver Mac version

    Dreamweaver Mac version

    Visual web development tools

    Notepad++7.3.1

    Notepad++7.3.1

    Easy-to-use and free code editor

    VSCode Windows 64-bit Download

    VSCode Windows 64-bit Download

    A free and powerful IDE editor launched by Microsoft