HTMLTag

Instance

    文档标题 
文档内容......

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

All major browsers support< body> tag.


Tag definition and usage instructions

tag defines the body of the document. The

element contains all the content of the document (such as text, hyperlinks, images, tables, lists, etc.).


Differences between HTML 4.01 and HTML5

In HTML 5, the "rendering attribute" of all body elements has been removed.

In HTML 4.01, the "rendering attribute" of all body elements has been deprecated.


Properties

#link text vlink
Properties Value Description
alink color HTML5 is not supported. HTML 4.01 is deprecated.Specifies the color of active links in the document.
background URL HTML5 Not supported. HTML 4.01 is deprecated.Specifies the background image of the document.
bgcolor color ##HTML5 is not supported. HTML 4.01 is deprecated.Specifies the background color of the document.
color HTML5 Not supported. HTML 4.01 is deprecated.Specifies the color of unvisited links in the document.
color HTML5 Not supported. HTML 4.01 is deprecated.Specifies the color of all text in the document.
color HTML5 is not supported. HTML 4.01 is deprecated.Specifies the color of visited links in the document.


Global attributes

The tag supports global attributes of HTML.


Event attributes

tag supports HTML event attributes.


Related Articles

HTML Tutorial: HTML Elements

HTML DOM Reference Manual: Body Object