<BODY>
The BODY tag is used to define the major content section of an HTML document.
HTML documents are typically divided into two major sections: the HEAD and the
BODY. The HEAD is where you place a lot of the META information and references
to supporting documents as well as optional client-side scripting.
The BODY is where you place the content for your web page. This includes text,
images and tables. Basically, anything that is visible to the visitor will be
defined in the BODY section.
Attributes
Attribute |
Description |
ID |
Identifies this tag to reference in script (program code) |
CLASS |
Define the class used to render this element (defined by a style sheet) |
TITLE |
A title that is associated with the element (displayed as a tooltip in Internet Explorer) |
BACKGROUND |
[DEPRECATED] Indicates an image resource which will be used to fill the background of the web page. Image is tiled as needed to cover the entire content area |
BGCOLOR |
Defines a color to use for the background of the web page (like: #008000 or white ) |
TEXT |
[DEPRECATED] Defines the font color for text displayed on the web page (like: #008000 ) |
LINK |
[DEPRECATED] Defines the font color for hyperlinks (unvisited) on the web page (like: #008000 ) |
VLINK |
[DEPRECATED] Defines the font color for hyperlinks (visited) on the web page (like: #008000 ) |
ALINK |
[DEPRECATED] Defines the font color for hyperlinks (active or currently selected) on the web page (like: #008000 ) |
|
Example
<BODY bgcolor="white" text="black" link="red" alink="fuchsia" vlink="maroon">
Compatibility
HTML 4.01
|