body

Form

<body> ... </body>

Attributes

attribute default description
id none specifies the unique ID
class none specifies the style sheet class
style none specifies the style sheet
background none specifies a background image
bgcolor browser dependency specifies the background color
text browser dependency specifies the text color
link browser dependency specifies the color of a link(unvisited link)
alink browser dependency specifies the color of a link just as it is being clicked
vlink browser dependency specifies the colorof a link(visited link)
bgproperties scroll specifies whether the background image is fixed or scrolls
leftmargin browser dependency specifies the left margin
topmargin browser dependency specifies the top margin
marginwidth browser dependency specifies the amount of space for the left and right margins (Netscape 4)
marginheight browser dependency specifies the amount of space for the top and bottom margins (Netscape 4)

Support

HTML 2, HTML 3.2, HTML 4.01 [STF], XHTML 1.0 [STF], XHTML 1.1, XHTML Basic
Microsoft (MSDN)
[IE3 or later][Firefox 1 or later][Safari 1 or later][Opera 3 or later][Netscape 2 or later]

Explanation

The body tag indicates the body of the page (the content of the page).

Related Tags

head

Sample code [Output]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
</head>
<body bgcolor="#ddddff">
<h1>Sample</h1>
<p>
The body of a page is indicated by the body tag.
</p>
</body>
</html>