Home  >  Article  >  Web Front-end  >  What are the three parts that make up html code?

What are the three parts that make up html code?

青灯夜游
青灯夜游Original
2021-02-20 16:20:289266browse

The three parts that make up the html code are: 1. The "html" part, which is the root tag of the html document and the ancestor container of all html tags; 2. The "head" part represents the Header information is the container for all head elements; 3. The "body" part mainly contains some elements that make up the content of the web page.

What are the three parts that make up html code?

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

Basic code structure of HTML page

<!DOCTYPE html>
<html>
<head>
    <title>标题</title>
</head>
<body>
内容
</body>
</html>

The three parts that constitute the html code:

07e6e06e0dc95dc83bb70d14dca11cbe73a6ac4ed44ffec12cee46588e518a5e-------html tag is the root tag of the html document. All web page tags are placed in this pair of tags, which is the ancestor container of all html tags.

93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1-------The head tag represents the header information of the html document and is the container for all head elements. The internal Contains: b2386ffb911b14667cb8f0f91ea547a7 3f1c4e4b6b16bbbd69b2ee476dc4f83ac9ccee2e6ea535a969eb3f532ad9fe89e8e496c15ba93d81f6ea4fe5f55a22442cdf5bf648cf2f33323966d7f58a7f3f these header elements. [Related recommendations: "Html5 Video Tutorial"]

6c04bd5ca3fcae76e30b72ad730ca86d36cc49f0c466276486e50c850b7e4956-------Web page body tag, inside It mainly contains some elements that make up the content of the web page, such ase388a4556c0f65e1904146cc1a846bee94b3e26ee717c64999d7867364b1b4a3,45a2772a6b6107b401db3c9b82c049c254bdf357c58b8a65c66d7c19c8e4d114,dc6dce4a544fdca2df29d5ac0ea9906b16b28748ea4df4d9c2150843fecfba68,f5d188ed2c074f8b944552db028f98a1f16b1740fad44fb09bfe928bcc527e08 wait. These elements will be displayed in the content part of the web page.

Description:

85f110fa3ab83ec51d18641ff86edc44------Document type, it is not an HTML tag, its purpose is To tell the standard universal markup language parser what document type definition (DTD) it should use to parse the document, in html5 documents, it is generally written as 6b1499ca8ad10abaea57b650c013ed67; it is worth noting that 85f110fa3ab83ec51d18641ff86edc44 Does not belong to html tags.

For more programming related knowledge, please visit: Programming Video! !

The above is the detailed content of What are the three parts that make up html code?. 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