Tag Reference - body
Description
This element encloses the main content of the page, which the user can see.
Attributes
alink
This attribute specifies the colour used for "active" hyperlinks - ie, the one which will be activated if the user presses the "Enter" key.
background
This attribute is the URL to a background image for the page, which is tiled to fill the available space.
bgcolor
Sets the background colour for the page - you are advised to retain a high background to text colour contrast.
bgproperties
In the Microsoft implementation, specifying "fixed" will prevent the background picture from scrolling with the page content - instead it will remain static in the background.
bottommargin
In Internet Explorer, this determines the size of the bottom margin of the page.
class
The CSS style class to be applied to this tag. This could be used, for example, to create a style for "important" items, using a line in the style sheet as below:
.important { font-color: red }
This can be applied to the tag as follows:
<b class="important">This is important.</b>
.important { font-color: red }
This can be applied to the tag as follows:
<b class="important">This is important.</b>
dir
Overrides the direction of the text from the standard direction. "rtl" displays the text from right to left, "ltr" from left to right.
id
A unique alphanumeric identifier used to identify this object/tag. This identifier can be used in scripting languages to refer to the tag or object.
lang
The language of the text enclosed by this tag, as defined in RFC 1766 (eg en-gb for British English).
language
In Microsoft's implementation, sets the language for the scripts defined in the tag's event handlers.
leftmargin
In Internet Explorer, this determines the size of the left margin of the page.
link
Specifies the colour of normal hyperlinks.
rightmargin
In Internet Explorer, this determines the size of the right margin of the page.
scroll
In version 4 browsers, specifying "no" will turn the scrollbars off. This is generally not advised as users will not be able to see the entire page on small screens.
style
Inline style-sheet information.
text
Sets the default text colour for the page.
title
Advisory text for this tag - this could define an abbreviation or acronym, explain where a link goes or provide some other useful description.
topmargin
In Internet Explorer, this determines the size of the top margin of the page.
vlink
Determines the colour of visited hyperlinks (those links which go to pages that a user has already been to).
