" tag is used to inform the browser that it is an HTML document; 2. The "
" tag contains the metadata of the document and provides relevant information to the browser. Document content and markup information; 3. The "" tag contains content that visitors can see."/> " tag is used to inform the browser that it is an HTML document; 2. The "" tag contains the metadata of the document and provides relevant information to the browser. Document content and markup information; 3. The "" tag contains content that visitors can see.">Home > Article > Web Front-end > What are the three tags in the basic html5 document structure?
The three tags of the basic document structure of html5: 1. The "100db36a723c770d327fc0aef2ce13b1" tag is used to inform the browser that it is an HTML document; 2. The "93f0f5c25f18dab9d176bd4f6de5d30e" tag contains the document's Metadata, which provides the browser with information about the document content and markup; 3. The "6c04bd5ca3fcae76e30b72ad730ca86d" tag contains content that visitors can see.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
HTML (Hypertext Markup Language) was born in the early 1990s and is used to specify the elements for building web pages. Most of these elements are used to describe web page content, such as Titles, paragraphs, lists, links to other web pages, etc. HTML5 is the latest version of HTML. Most of its content is compatible with old and new browsers and has added a lot of new features. HTML5 also introduces native audio and video playback capabilities.
HTML5 is actually the general name for a series of related technologies used to create modern rich Web content. The three most important technologies are the HTML5 core specifications. , CSS (Cascading Style Sheets, cascading style sheets) and JavaScript.
1) The HTML5 core specification defines the elements used to mark content and clarifies their meaning.
2) CSS is used to control the appearance of marked content in front of users.
3) JavaScript is used to manipulate the content of HTML documents and respond to user operations.
At the same time, HTML5 introduces native multimedia support, programmable content (canvas element, JavaScript must be used) and Semantic Web.
If you want to know more about the history of HTML5, you can refer to Wikipedia
"HTML document is a description of a document. It has a fixed structure and is divided into many parts. Each part contains One or more elements. Some elements are used to describe the basic information of the document, and some describe the document structure. The following is the structure of a basic HTML document:,
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Your page title</title> </head> <body> ..... </body> </html>
This HTML document describes a blank page, these The basic components determine the outline of the HTML document and the browser's initial environment.
DOCTYPE element
The DOCTYPE element can be omitted, and the Most browsers can still display the document content correctly, but it is not a good practice to rely on the browser's performance. This element tells the browser two things:
It is processing an HTML document;
The version of HTML used to mark document content. The above writing method indicates that HTML5 is used.
Note: The doctype statement does not Belongs to the HTML tag.
html element The
html element is the root element, which tells the browser that it is an HTML document. The lang attribute specifies the default language of the page content, for example: en means English, es means Spanish, etc.
head element
The head element contains the document's metadata, providing information to the browser about the document's content and markup, and can also contain scripts and references to external resources (such as CSS style sheets).
body element
The body part of the document contains the content that visitors can see.
After having this basic structure, We can gradually add other elements of HTML later to continuously enrich the document and finally get the page we want.
Recommended tutorial: "html video tutorial"
The above is the detailed content of What are the three tags in the basic html5 document structure?. For more information, please follow other related articles on the PHP Chinese website!