Home  >  Article  >  Web Front-end  >  What parts does an html document consist of?

What parts does an html document consist of?

王林
王林Original
2021-02-24 10:46:4646014browse

html document consists of three parts: tag, header and body. The markup description file is described in Hypertext Markup Language. The header represents the beginning and end of the header information. The actual content displayed on the web page is included in the body.

What parts does an html document consist of?

The operating environment of this article: windows10 system, html 5, thinkpad t480 computer.

HTML document structure generally includes three parts: markup (Html), header (Head), and body (Body).

Mark07e6e06e0dc95dc83bb70d14dca11cbe73a6ac4ed44ffec12cee46588e518a5e: indicates that the file is described using hypertext markup language. It is the beginning of the file, and 73a6ac4ed44ffec12cee46588e518a5e indicates the end of the file. They It is the opening tag and the ending tag of the Hypertext Markup Language file.

Header93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1: Indicates the beginning and end of the header information. The tags contained in the header are the title, preface, description and other content of the page. It is not displayed as content itself, but affects the display effect of the web page.

Body6c04bd5ca3fcae76e30b72ad730ca86d36cc49f0c466276486e50c850b7e4956: The actual content displayed on the web page is contained between these two body tags. Text tags are also called entity tags.

Let’s take a look at the document structure:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文网</title>
</head>
<body>
    <h1>我的第一个标题</h1>
    <p>我的第一个段落。</p>
</body>
</html>

Recommended learning: html tutorial

The above is the detailed content of What parts does an html document consist of?. 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