", which is an instruction that tells the browser that the document uses the HTML specification. The doctype declaration must be located on the first line of the HTML5 document, before the "" tag."/> ", which is an instruction that tells the browser that the document uses the HTML specification. The doctype declaration must be located on the first line of the HTML5 document, before the "" tag.">

Home>Article>Web Front-end> What is the doctype declaration of html5

What is the doctype declaration of html5

青灯夜游
青灯夜游 Original
2021-12-03 15:12:07 8616browse

The doctype declaration of html5 is "fef50554eca1a427827adaa329da8122", which is an instruction used to inform the browser that the document uses the HTML specification. The doctype declaration must be on the first line in the HTML5 document, before the "100db36a723c770d327fc0aef2ce13b1" tag.

What is the doctype declaration of html5

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

HTML5 DOCTYPE declaration

DOCTYPE is the abbreviation of document type.

The doctype declaration is not an HTML tag; rather, it is a document type tag, which is an instruction that tells the browser the version of markup in which the page was written.

The doctype declaration is a document type declaration in a standard universal markup language. It is used in web design to indicate what version of XHTML or HTML you are using.

html5 There is only one doctype declaration:


      

1a309583e26acea4f04ca31122d8c535 The declaration must be located on the first line in the HTML5 document, that is, before the 100db36a723c770d327fc0aef2ce13b1 tag. This tag tells the browser the HTML specification used by the document.

    文档标题 
文档内容......

It is very important to specify the doctype in all HTML documents so that the browser understands the expected document type.

Explanation:

  • 1a309583e26acea4f04ca31122d8c535 tag has no closing tag.

  • 1a309583e26acea4f04ca31122d8c535 is not case sensitive.

Recommended tutorial: "html video tutorial"

The above is the detailed content of What is the doctype declaration of html5. For more information, please follow other related articles on the PHP Chinese website!

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
Previous article:What are the html5 editors? Next article:What are the html5 editors?