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 is the document type declaration for html5

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this article Xiaobian for you to introduce in detail "html5 document type statement is what", the content is detailed, the steps are clear, the details are handled properly, I hope this "html5 document type statement is what" article can help you solve doubts, the following follow the editor's ideas slowly in-depth, together to learn new knowledge bar.

In html5, the document type declaration is a DOCTYPE declaration and the syntax is "". The DOCTYPE declaration is a standard generic markup language document type declaration that enables browsers to understand the HTML specification being used by HTML5 documents.

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

In html5, the document type declaration is a DOCTYPE declaration.

The DOCTYPE declaration is a standard generic markup language document type declaration that enables browsers to understand the HTML specification being used by HTML5 documents.

The DOCTYPE declaration is the starting point of the HTML5 document, that is, it must be on the first line of the HTML5 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.

In HTML 4.01, the declaration refers to DTD (document type declaration) because HTML 4.01 is based on SGML (Standard Generalized Markup Language Standard Universal markup language). DTD specifies the rules of the markup language to ensure that browsers render content correctly.

HTML5 is not based on SGML, so a reference to DTD is not required.

Tip: always add a declaration to your HTML document to make sure that the browser knows the document type in advance.

HTML 4.01 specifies three different declarations: Strict, Transitional, and Frameset. Only one is specified in HTML5:

Example: basic document architecture

Document title document content.

Note:

The label does not have an end tag.

The declaration is not case-sensitive.

After reading this, the article "what is the document type declaration of html5" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it to understand it. If you want to know more about the article, please follow the industry information channel.

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

Development

Wechat

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

12
Report