What parts does an html document consist of?

王林
Release: 2023-01-03 09:25:00
Original
46003 people have browsed it

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

Mark< html>: indicates that the file is described using hypertext markup language. It is the beginning of the file, and indicates the end of the file. They It is the opening tag and the ending tag of the Hypertext Markup Language file.

Header: 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.

Body: 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>
Copy after login

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!

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