In HTML, the body tag refers to "
", which is used to define the main content of the document. What is placed between "" and "" All content in the web page, such as text, pictures, links, tables, forms, etc.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
In HTML, the body tag refers to "
".The body tag is the body part of a web page, used to define the main content of the web page, and is a necessary part of an HTML document.
Place in
and are all the content in the web page, such as text, pictures, links, tables, forms, etc.In HTML tags can have attributes, which can provide additional information for HTML elements on the page.
Attributes | Value | Description |
---|---|---|
alink |
|
Deprecated. Please use style to replace it. Specifies the color of active links in the document. |
background | URL |
Deprecated. Please use style to replace it. Specifies the background image of the document. |
bgcolor |
|
Deprecated. Please use style to replace it. Specifies the background color of the document. |
|
Deprecated. Please use style to replace it. Specifies the default color of unvisited links in the document. |
|
|
Deprecated. Please use style to replace it. Specifies the color of all text in the document. |
|
|
Deprecated. Please use style to replace it. Specifies the color of visited links in the document. |
<div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false"><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>
<body bgcolor="red">
文档内容......
</body>
</html></pre><div class="contentsignin">Copy after login</div></div>
Recommended tutorial: "
html video tutorialThe above is the detailed content of What is the body tag in HTML. For more information, please follow other related articles on the PHP Chinese website!