Body

Support Key: [2|3|3.2|4] [X1|X1.1] [IE1|M1|N1|O2.1]
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson =
Main Index | Element Tree | Element Index | HTML Support History



   Quick Statistics   
End Tag:
   Start & End tag optional
Standards Details:
In all HTML 4.x/XHTML DTDs
XHTML Modules:
Structure
CSS 'display' Type:
"block"
CSS Mapping:
NA
Default Rendering:
Browser dependent
Official Docs:
HTML 4.x, XHTML 1.1
What is it?
This is a top level HTML document structure which encapsulates and defines all content (text and images) in the document structure; all document content should be contained within the BODY element. All attributes to this element define document wide properties and display characteristics.

Common Attributes
%Core%
[2|3|3.2|4] [X1|X1.1] [IE3|M|N4B2|O3.5]
%Accessibility%
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N6|O5]
%Events%
[2|3|3.2|4] [X1|X1.1] [IE3|M|N2|O3]
%Language%
[2|3|3.2|4] [X1|X1.1] [IE4|M|N6B1|O]
%Data%
[2|3|3.2|4] [X1|X1.1] [IE4|M|N|O]
%Editing%
[2|3|3.2|4] [X1|X1.1] [IE5.5|M|N|O]

Specific Attributes
Align
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O4]
Standards Details: NA
Required? No
Description:
This indicates the horizontal alignment of the content in this block element relative to the browser window.
Values: Left [DEFAULT] | Center | Right
Alink
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N1.1|O7.11]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0. Dropped in XHTML 1.1 in favor of CSS.
Required? No
Description:
This attribute indicates the color that a hyperlink assumes when it is activated or clicked on. This state is usually only temporary until the activation event ends
Values: CDATA. [The standard HTML color specification methods apply.]
Background
[2|3|3.2|4] [X1|X1.1] [IE1|M2FB|N1.1|O2.1]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0. Dropped in XHTML 1.1 in favor of CSS.
Required? No
Description:
This attribute specifies an image to be used in the background of the document. If the referenced image is smaller than the browser window, it will be tiled to fit and will scroll with the text on the page.
Values: CDATA. [Either an absolute or relative URL indicating the location of the graphic. All URLs should be URL encoded where required.]
BGColor
[2|3|3.2|4] [X1|X1.1] [IE1|M2FB|N1.1|O2.1]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0. Dropped in XHTML 1.1 in favor of CSS.
Required? No
Description:
This attribute specifies the color of the document background and allows control over background appearance without requiring the browser to make an additional download of an image. If a BACKGROUND image attribute is also present, the BGCOLOR specified will shine through regions where the background image is transparent.
Values: CDATA. [The standard HTML color specification methods apply.]
BGProperties
[2|3|3.2|4] [X1|X1.1] [IE2|M|N|O7]
Standards Details: NA
Required? No
Description:
This attribute is dependent upon the BACKGROUND attribute for proper operation. The only allowable value currently is Fixed, and it indicates to the browser that the specified background image will be watermarked in the browser window [image will not scroll when the text scrolls.] If this attribute is absent, the default scrolling behavior is used.
Values: Fixed
BottomMargin
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N|O]
Standards Details: NA
Required? No
Description:
This attribute gives the author control over the amount of space devoted to the bottom margin of the document.
Values: Specified in pixels with integer values of 0 or greater.
LeftMargin
[2|3|3.2|4] [X1|X1.1] [IE2|M|N6.2|O7]
Standards Details: NA
Required? No
Description:
This attribute gives the author control over the amount of space devoted to the left margin of the document.
Values: Specified in pixels with integer values of 0 or greater.
Link
[2|3|3.2|4] [X1|X1.1] [IE1|M2FB|N1.1|O2.1]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0. Dropped in XHTML 1.1 in favor of CSS.
Required? No
Description:
This attribute indicates the default color of hyperlinks that have not yet been activated.
Values: CDATA. [The standard HTML color specification methods apply.]
Marginheight
[2|3|3.2|4] [X1|X1.1] [IE|M|N4|O4]
Standards Details: NA
Required? No
Description:
This attribute gives the author control over the amount of space devoted to the top and bottom margins of the document.
Values: Specified in pixels with integer values of 0 or greater.
Marginwidth
[2|3|3.2|4] [X1|X1.1] [IE|M|N4|O4]
Standards Details: NA
Required? No
Description:
This attribute gives the author control over the amount of space devoted to the left and right margins of the document.
Values: Specified in pixels with integer values of 0 or greater.
NoWrap
[2|3|3.2|4] [X1|X1.1] [IE4|M|N|O]
Standards Details: NA
Required? No
Description:
This attribute specifies whether or not the content of the element will use normal HTML linebreaking conventions. If False, normal linebreaking behavior is used. If set to True, the element will not wrap to the rendering viewport unless explicit linebreaking elements are added.
Values: False (DEFAULT), True
May also be used as a standalone attribute, in which case the value is treated as TRUE.
RightMargin
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N|O]
Standards Details: NA
Required? No
Description:
This attribute gives the author control over the amount of space devoted to the right margin of the document.
Values: Specified in pixels with integer values of 0 or greater.
Scroll
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N|O]
Standards Details: NA
Required? No
Description:
This controls whether or not a vertical scrollbar is rendered on the edge of the document window.
Values: Yes [DEFAULT] | No
Text
[2|3|3.2|4] [X1|X1.1] [IE1|M2FB|N1.1|O2.1]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0. Dropped in XHTML 1.1 in favor of CSS.
Required? No
Description:
When this attribute is present it indicates the default color of the document text. This color can be overridden locally by specifying a FONT COLOR value.
Values: CDATA. [The standard HTML color specification methods apply.]
TopMargin
[2|3|3.2|4] [X1|X1.1] [IE2|M|N6.2|O7]
Standards Details: NA
Required? No
Description:
This attribute gives the author control over the amount of space devoted to the top margin of the document.
Values: Specified as pixels with integer values of 0 or greater.
VLink
[2|3|3.2|4] [X1|X1.1] [IE1|M2FB|N1.1|O2.1]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0. Dropped in XHTML 1.1 in favor of CSS.
Required? No
Description:
This attribute indicates the default color of hyperlinks that have already been activated.
Values: CDATA. [The standard HTML color specification methods apply.]
Example
<html>
<head>
      <title>this is the document title</title>
</head>
<body background="image.gif" bgproperties="fixed" text="#ff0000" link="#ffff00">
document text
</body>
</html>
Parent Model
Pre-HTML 4.0 Parent Model
<html> | <noframes>
HTML 4.0 Parent Model *
<html>
Content Model
%In-line Content% | %Block Content% | <del> | <ins>
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...