<BODY...>
     ALINK="#rrggbb|Colour Name"
     BACKGROUND="URL"
     BGCOLOR="#rrggbb|Colour Name"
     BGPROPERTIES="Fixed"
     BOTTOMMARGIN="Pixels"
     CLASS="Style Sheet Class"
     ID="Unique Identifier"
     LANG="Language descriptor"
     LANGUAGE="Scripting Language descriptor"
     LEFTMARGIN="Pixels"
     LINK="#rrggbb|Colour Name"
     RIGHTMARGIN="Pixels"
     SCROLL="yes|no"
     STYLE="Style Sheet Setting"
     TEXT="#rrggbb|Colour Name"
     TITLE="Title of element"
     TOPMARGIN="Pixels"
     VLINK="#rrggbb|Colour Name"
     onClick="Script Function"
     onDblClick="Script Function"
     onDragStart="Script Function"
     onFilterChange="Script Function"
     onHelp="Script Function"
     onKeyDown="Script Function"
     onKeyPress="Script Function"
     onKeyUp="Script Function"
     onMouseDown="Script Function"
     onMouseMove="Script Function"
     onMouseOut="Script Function"
     onMouseOver="Script Function"
     onMouseUp="Script Function"
     onSelectStart="Script Function"
     onBlur="Script Function"
     onFocus="Script Function"
     onLoad="Script Function"
     onUnLoad="Script Function"
>
...
</BODY>

Description

De-limits the main body of the document and can be used to set various document colouring options.

Attributes

Attribute Description
ALINK Specifies the colour of active links (I.e. when a link is clicked on) in the document. #rrggbb triplets or colour names are valid values.
BACKGROUND Provides a URL reference for an image to be used as the background for the document.
BGCOLOR Specifies a colour for the background of the document.
BGPROPERTIES Using BGPROPERTIES="fixed" forces any background image (specified in the BACKGROUND attribute to be 'fixed' on the page. I.e. it's a watermark and doesn't scroll with the rest of the document.
BOTTOMMARGIN Sets the size of the bottom margin of the document, providing clear white space at the bottom of the document.
CLASS Sets the style sheet class (specified in an in-line, linked or imported style sheet) to be applied to the element.
ID Sets a unique identifier for the element, allowing it to be referenced within scripting functions, or to specify a style sheet setting, set using a #<style_class> class selector.
LANG Specifies the language (using an ISO country code derived classifier) that the element is using, for browsers that support document localisation.
LANGUAGE Sets the scripting language that any in-line scripting events are written in.
LEFTMARGIN Sets an amount of white space between the left-most edge of the browser window and the document contents.
LINK Specifies the colour of all links in the document, using either a #rrggbb hex triplet, or one of the supported colour names.
RIGHTMARGIN Sets an amount of white space to be rendered between the document contents and the right-most edge of the browser window (in pixels).
SCROLL A boolean value which sets whether scrollbars will be presented to the user.
STYLE Sets in-line style sheet settings for the element, which will over-ride any set in a <STYLE> block, or externally linked to the document.
TEXT Specifies the colour of the text for the whole document. Accepts either a #rrggbb hex triplet, or a colour name.
TITLE Specifies an informational title for the element. The contents of the TITLE attribute may be presented as a Tool-Tip by some browsers.
TOPMARGIN Sets an amount of white space to be rendered between the document contents and the top-most edge of the browser window (in pixels).
VLINK Specifies the colour of visited links (I.e. links that have already been activated) in the document. #rrggbb triplets or colour names are valid values.

Scripting Events

Event Description
onClick Fired whenever the user clicks the element (or its contents) with the mouse
onDblClick Fired whenever the user double-clicks the element (or its contents) with the mouse (the double-click speed is dependant on the users system settings).
onDragStart Fired when the users initiaties dragging of the element (or it's contents)
onFilterChange Fired whenever a filter is applied to an element, or whenever the properties of an applied filter are changed.
onHelp Fired whenever the user presses 'F1' (for help) and the element has the users current focus.
onKeyDown Fired when the user presses a key (only when the key is actually pressed) when the element has the focus.
onKeyPress The onkeypress event is similar to the onkeydown event, except that it returns the UNICODE value of the key or keys being pressed when the event occurs.
onKeyUp The onkeyup event is fired when a previously pressed key is released while the referenced element has the focus.
onMouseDown The onmousedown event fires whenever the user presses a button on the mouse, with the event being initially fired for the element that has the focus when the mouse button is clicked, and bubbling up through the element objects until an onmousedown event handler is found.
onMouseMove The onmousemove event occurs whenever the users mouse moves over the element.
onMouseOut The onmouseout event fires when the users mouse leaves the area defined by the referenced element.
onMouseOver The onmouseover event fires when the users mouse enters the area defined by the referenced element.
onMouseUp The onmouseup event fires after a users mouse button has been pressed and released.
onSelectStart The onselectstart event is fired whenever the users starts to select some text that is the contents of the referenced element.
onBlur Fires when the element loses the users focus (i.e. the user clicks on a different element within the document).
onFocus Fires whenever the element receives the focus, either by the user directly clicking on, or 'tab'bing to the element, or when the focus is applied through scripting.
onLoad Fires when the main body content of the document has finished loading.
onUnLoad Fired whenever the document is unloaded (e.g. when the browser is closed, or a new document is loaded).


See 'HTML Reference|Document Structure Elements|<BODY>' for more information.