Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common DOCTYPE statements of html

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of "what are the common DOCTYPE statements in html". The editor shows you the operation process through actual cases, and the operation method is simple, fast and practical. I hope that this article "what are the common DOCTYPE statements in html" can help you solve the problem.

There are 8 kinds: 1, HTML5 version; 2, HTML 4.01 strict version; 3, HTML 4.01 transitional version; 4, HTML 4.01 framework version; 5, XHTML 1.0 strict version; 6, XHTML 1.0 transitional version; 7, XHTML 1.0 framework version; 8, XHTML 1.1 version.

The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.

The declaration is at the front of the document, before the tag.

The declaration is not a HTML tag; it is used to tell Web browsers which version of HTML the page uses.

Common DOCTYPE statements

HTML 5

HTML 4.01 Strict (strict)

This DTD contains all HTML elements and attributes, but does not include imagery or outdated elements (such as font). Framesets are not allowed.

HTML 4.01 Transitional (transitional version)

This DTD contains all HTML elements and attributes, including representational or outdated elements (such as font). Framesets are not allowed.

HTML 4.01 Frameset

This DTD is the same as the HTML 4.01 Transitional, but the frameset content is allowed.

XHTML 1.0 Strict (strict)

This DTD contains all HTML elements and attributes, but does not include imagery or outdated elements (such as font). Framesets are not allowed. The structure must be written in standard format XML.

XHTML 1.0 Transitional (transitional version)

This DTD contains all HTML elements and attributes, including representational or outdated elements (such as font). Framesets are not allowed. The structure must be written in standard format XML.

XHTML 1.0 Frameset

This DTD is the same as XHTML 1.0 Transitional, but allows the use of frameset content.

XHTML 1.1

This DTD is the same as XHTML 1.0 Strict, but allows you to add modules (such as ruby support for East Asian languages).

So much for the introduction of "what are the common DOCTYPE statements in html". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report