" tag and the syntax is "". The "" tag tells 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?-Front-end Q&A-php.cn

What tag does html5 start with?

青灯夜游
Release: 2021-09-09 17:52:11
Original
3690 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. Thedeclaration must be located on the first line in the HTML5 document, that is, before thetag.

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):

  标题 
  显示内容.....  
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!