Home > Web Front-end > Front-end Q&A > What tag does html5 start with?

What tag does html5 start with?

青灯夜游
Release: 2021-09-09 17:52:11
Original
3811 people have browsed it

html5 starts with the "" tag and the syntax is "". The "" tag will tell the browser the HTML specification used in the document, that is, what version of HTML is used; this tag must be located on the first line of the HTML5 document.

What tag does html5 start with?

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

html5 starts with the "" tag, which tells the browser the HTML specification used in the document.

doctype is the abbreviation of Document Type. The declaration must be located on the first line in the HTML5 document, that is, before the tag.

The doctype declaration is not an HTML tag; it is an instruction that tells the browser the version of the tag used to write the page.

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

Example: HTML5 document with correct document type (doctype):

<!DOCTYPE HTML><html>

<head>
<title>标题</title>
</head>

<body>
显示内容.....
</body>

</html>
Copy after login

Comments:

  • ##

  • is not case sensitive.

For more programming-related knowledge, please visit:

Programming Video! !

The above is the detailed content of What tag does html5 start with?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template