TAG:  body

<body> ... </body>
Available in versions: 2.0, 3.2, 4.0
Browser compatibility: Explorer 4, 5  Netscape 4, 6
 
The <body> tag is used to signify the start of the contents of your HTML document.
 
If you are using frames, then you use the frameset tag in place of the body tag.
 
Effective with version 4.0, many of the regular attributes for this tag are deprecated in favor of using style sheets. However, since this is one of the most important HTML tags, you can be assured that all major browsers will continue to recognize the deprecated attributes.
 
The closing tag is optional. However, it is recommended that it always be included.
 
Core Attributes
 
class    dir    id    lang    onclick    ondblclick    onkeydown    onkeypress    onkeyup    onmousedown    onmousemove    onmouseout    onmouseover    onmouseup    style    title
 
Attributes
 
alink    deprecated 4.0
The alink attribute is used to set the color that the text of an active link will display when the mouse is clicked down, but not yet released. There is no default color.
 
background    deprecated 4.0
The background attribute allows you to use an image for the background of your HTML document. For most browsers, the image can be a .gif or .jpg file. Some browsers recognize other types of image files. If the image is smaller than your document, the image will be tiled (repeated).
 
bgcolor
The bgcolor attribute is used to set the background color for the document. It can be a named color (such as red) or a six character hexadecimal RGB color code (such as #e26fa9).
 
link    deprecated 4.0
The link attribute is used to set the color of the link. The default is #2222bb.
 
onload
The onload attribute is an event that allows a JavaScript code to execute after your HTML document has finished loading in a window.
 
onunload
The onunload attribute is an event that allows a JavaScript code to execute when your HTML document is unloaded.
 
text    deprecated 4.0
The text attribute is used to set the color of the text. The default is #000000 (black).
 
vlink    deprecated 4.0
The vlink attribute is used to set the color that the text of a link will display after it has been visited. The default color is #8822bb.
 
This example demonstrates the code structure for creating an HTML document.
 
Code:
<html>
<head>
<title>
... place title here
</title>
</head>
<body>
... place document contents here
</body>
</html>


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information