Home > Web Front-end > Front-end Q&A > How to use html body tag

How to use html body tag

藏色散人
Release: 2019-05-28 11:34:05
Original
5233 people have browsed it

html The body tag is the body part of a web page, which is used to define the main content of the web page and is also a necessary part of an HTML document. The body element contains all the content of the document (such as text, hyperlinks, images, tables and lists, etc.)

How to use html body tag

html How to use the body tag? What does the tag body mean?

The tag body is the body part of a web page, which is used to define the main content of the web page and is also a necessary part of an HTML document.

Function: Define the body of the document.

Note: The body element contains all the content of the document (such as text, hyperlinks, images, tables and lists, etc.)

Note: In HTML 4.01, the "rendering" of all body elements Properties" are deprecated. In XHTML 1.0 Strict DTD, all "rendering attributes" of the body element are not supported.

html body tag usage example

<html>
<head>
<title>我的第一个 HTML 页面</title>
</head>
<body>
<p>body 元素的内容会显示在浏览器中。</p>
<p>title 元素的内容会显示在浏览器的标题栏中。</p>
</body>
</html>
Copy after login

Effect output:

How to use html body tag

The above is the detailed content of How to use html body tag. 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