Contents Index Topic Contents | ||
Previous Topic: BLOCKQUOTE Next Topic: BR |
BODY
Description
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.
Syntax
<BODY
ALINK=color
BACKGROUND=url
BGCOLOR=color
BGPROPERTIES=FIXED
BOTTOMMARGIN=pixels
CLASS=classname
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
LEFTMARGIN=pixels
LINK=color
RIGHTMARGIN=pixels
SCROLL=YES|NO
STYLE=css1-properties
TEXT=color
TITLE=string
TOPMARGIN=n
VLINK=color
event = script
>
Parameter Description ALINK=color The color for the active link. For a complete list of colors, look at the Internet Explorer color table. BACKGROUND=url Specifies a background picture. The picture is tiled behind the text and graphics on the page. BGCOLOR=color Sets the background color of the page. For a complete list of colors, look at the Internet Explorer color table. 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. If set to "0" or "", the bottom margin will be exactly on the bottom edge of the window or frame. CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. LANG=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. LEFTMARGIN=pixels Specifies the left margin for the entire body of the page and overrides the default margin. If set to "0" or "", the left margin will be exactly on the left edge of the window or frame. LINK=color The color of shortcuts that have not yet been visited. For a complete list of colors, look at the Internet Explorer color table. RIGHTMARGIN=pixels Specifies the right margin for the entire body of the page and overrides the default margin. If set to "0" or "", the right margin will be exactly on the right edge of the window or frame. SCROLL=YES | NO Turns on or off the scrollbars. The default is YES. STYLE=css1-properties Specifies an in-line style sheet for the tag. TEXT=color Sets the color of text on the page. For a complete list of colors, look at the Internet Explorer color table. TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. TOPMARGIN=pixels Specifies the margin for the top of the page and overrides the default margin. If set to "0" or "", the top margin will be exactly on the top edge of the window or frame. VLINK=color The color of shortcuts that have already been visited. For a complete list of colors, look at the Internet Explorer color table. event Can be one or more of these events: Remarks
This element is a block element.
Examples
This is the HTML used to insert the background image of this page.
<BODY BACKGROUND="http://www.microsoft.com/ie/images/watermrk.gif" BGPROPERTIES=FIXED BGCOLOR=#FFFFFF TEXT=#000000 LINK=#ff6600 VLINK=#330099><HTML><BODY>Here's a Web page!</BODY></HTML>Scripting Object
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.