BODY

<BODY
ACCESSKEY=string
ALINK=color
BACKGROUND=string
BGCOLOR=color
BGPROPERTIES=FIXED
BOTTOMMARGIN=string
CLASS=string
ID=string
LANG=string
LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT
LEFTMARGIN=variant
LINK=color
RIGHTMARGIN=string
SCROLL=string
STYLE=string
TEXT=color
TITLE=string
TOPMARGIN=string
VLINK=color
event = script
>

Specifies beginning and end of document body. This element can be used to set the background image, the background color, the link color and the top and left margins of the page. The end tag is required.

ACCESSKEY=
Specifies an accelerator for the element. Pressing control-key selects this anchor element in the user's browser.
ALINK=
The color for the active link.
BACKGROUND=
Specifies a background picture. The picture is tiled behind the text and graphics on the page.
BGCOLOR=
Sets the background color of the page.
BGPROPERTIES=
Specifies a watermark, which is a background picture that does not scroll.
BOTTOMMARGIN=
Specifies the bottom margin for the entire body of the page and overrides the default margin.
CLASS=
Specifies the class of the tag being defined. This is most often used to associated a sub-classed style sheet with the tag.
ID=
An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid names to script with are any alphanumeric string that begins with a letter. Valid special characters include underbar "_".
LANG=
This specifies the language to use. The specifier is an ISO standard language abbreviation.
LANGUAGE=
Specifies the language that the current script is written in. JavaScript is the default for this attribute.
LEFTMARGIN=
Specifies the left margin for the entire body of the page and overrides the default margin.
LINK=
The color of shortcuts that have not yet been visited.
RIGHTMARGIN=
Specifies the right margin for the entire body of the page and overrides the default margin.
SCROLL=
Turns on or off the scrollbars.
STYLE=
Specifies an in-line style sheet for the tag.
TEXT=
Sets the color of text on the page.
TITLE=
The Title attribute is used to provide advisory information.
TOPMARGIN=
Specifies the margin for the top of the page and overrides the default margin.
VLINK=
The color of shortcuts that have already been visited.
event
Can be one or more of these events:

onafterupdate onbeforeupdate

onblur onclick

ondblclick ondragstart

onfocus onhelp

onkeydown onkeypress

onkeyup onmousedown

onmousemove onmouseout

onmouseover onmouseup

onresize onrowenter

onrowexit onscroll

onselectstart

The BODY element is exposed as the BODY property on the document object.

This element is a block element.

Examples

This is the HTML used to insert the background image of this page.

<BODY background="/ie/images/watermrk.gif" BGPROPERTIES=FIXED

BGCOLOR=#FFFFFF TEXT=#000000 LINK=#ff6600 VLINK=#330099>

<HTML><BODY>Here's a Web page!</BODY></HTML>

Ayuda de Html para Javascripts.astalaweb.com.