Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the common DOCTYPE statements of html

Shulou Source: shulou.com Published: 2022-05-31 12:48:15 09月10日 Update

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.

Tags: Elements frames common outdated attributes representations same content knowledge standards tags formats structures industries different practical location practical tutorials Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS Shulou Tech Info Huawei MariaDB