". DOCTYPE is a document type tag, which is a document type declaration of a standard universal markup language. It is used in web design to indicate what version of XHTML or HTML you are using."/> ". DOCTYPE is a document type tag, which is a document type declaration of a standard universal markup language. It is used in web design to indicate what version of XHTML or HTML you are using.">

Home  >  Article  >  Web Front-end  >  What does html5 use to define document types?

What does html5 use to define document types?

青灯夜游
青灯夜游Original
2022-01-11 15:49:033810browse

In HTML5, use the doctype declaration to define the document type, and the syntax is "8b05045a5be5764f313ed5b9168a17e6". DOCTYPE is a document type tag, which is a document type declaration of a standard universal markup language. It is used in web design to indicate what version of XHTML or HTML you are using.

What does html5 use to define document types?

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

In HTML5, use the doctype declaration to define the document type.

DOCTYPE is the abbreviation of document type.

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





文档标题

文档内容......

The DOCTYPE declaration must be the first line of the HTML document, before the 100db36a723c770d327fc0aef2ce13b1 tag.

Note:

In HTML 4.01, the 1a309583e26acea4f04ca31122d8c535 declaration references a DTD because HTML 4.01 is based on SGML. A DTD specifies the rules for a markup language so that browsers can render content correctly.

HTML5 is not based on SGML, so there is no need to reference a DTD.

There are three types of 1a309583e26acea4f04ca31122d8c535 declarations in HTML 4.01. There is only one in HTML5:

Comment:

  • ##1a309583e26acea4f04ca31122d8c535 tag has no closing tag.

  • 1a309583e26acea4f04ca31122d8c535 The declaration is not case-sensitive.

Related recommendations: "

html video tutorial"

The above is the detailed content of What does html5 use to define document types?. 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