", which is used to define the main content of the document. Placed between "" and "" are all the content in the web page, such as text, Pictures, links, tables, forms, etc."/> ", which is used to define the main content of the document. Placed between "" and "" are all the content in the web page, such as text, Pictures, links, tables, forms, etc.">

Home  >  Article  >  Web Front-end  >  What is the body tag in HTML

What is the body tag in HTML

青灯夜游
青灯夜游Original
2021-11-17 16:27:0113204browse

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.

What is the body tag in HTML

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.

link##textvlinkExample: Using an additional bgcolor attribute, you can tell the browser that the background color of the page is red, like this:
Attributes Value Description
alink
  • rgb(x,x,x)
  • #xxxxxx
  • colorname

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
  • ##rgb(x,x,x)
  • #xxxxxx
  • colorname

Deprecated. Please use style to replace it.

Specifies the background color of the document.

  • rgb(x,x,x)
  • #xxxxxx
  • colorname

Deprecated. Please use style to replace it.

Specifies the default color of unvisited links in the document.

    rgb(x,x,x)
  • #xxxxxx
  • colorname
Deprecated.

Please use style to replace it. Specifies the color of all text in the document.

    rgb(x,x,x)
  • #xxxxxx
  • colorname
Deprecated.

Please use style to replace it. Specifies the color of visited links in the document.

<pre class="brush:html;toolbar:false">&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;title&gt;文档标题&lt;/title&gt; &lt;/head&gt; &lt;body bgcolor=&quot;red&quot;&gt; 文档内容...... &lt;/body&gt; &lt;/html&gt;</pre>

What is the body tag in HTML Recommended tutorial: "

html video tutorial

"

The 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!

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