The main body of the page  - <BODY>   -  </BODY>

Previous- BLOCKQUOTE - Block quotation  |  Next-BR - Line Break

Description
All web pages require a <BODY> element, in which the main contents of the web page are entered. The attributes of the <BODY> element can be used to change the way text colour, link colour, background and soforth are displayed. However in HTML 4.0 and above all these formatting attributes are deprecated and replaced with the concept of STYLE and Style Sheets.
Attributes
NameValuesDescription
alinkcolorSets the colour of the active hyperlink text using syntax "#rrggbb"
backgroundurlBackground picture which will appear behind all images and text on the web page.
bgcolorcolorBackground Colour, using syntax "#rrggbb".
bgpropertiesfixedSets a watermark, as the previous attribute did prior to HTML 4.0. Not accepted by IE4 or Netscape 4.
bottommarginnumberSpecifies the page's bottom margin in pixels. Not supported by IE4 or Netscape 4.
classclassnameClass of the element which is used to associate the element with a style sheet.
dirltr|rtlThe direction in which text flows when surrounded by text which flows in different directions.
event_namescript_codeDefines script to run on event such as OnMouseOver
idstringA unique name to identify an element.
langlanguage_typeThe ISO description for the language of the element.
languagejavascript|jscript|vbscript|vbs
leftmarginnumberSpecifies the left margin of the page in pixels. Not supported by IE4 or Netscape 4.
linkcolorSets the colour of the hyperlinks which have not been visited in the format "#rrggbb"
marginheightnumber
marginwidthnumber
rightmarginnumberSpecifies the page's right margin in pixels. Not supported by IE4 or Netscape 4.
scrollyes|noTurns scrollbars on or off. Not supported by IE4 or Netscape 4.
stylestringSpecifies style information for the element.
textcolorSets the colour of normal text in the format "#rrggbb"
titlestringTitle for element which is often displayed as a tool-tip when the cursor hovers over the element.
topmarginnumberSpecifies the page's top margin in pixels. Not supported by IE4 or Netscape 4.
vlinkcolorSets the colour of the hyperlinks which have been visited in the format "#rrggbb"

Example
<body bgcolour="#ffff00">
my page content is determined in these lines.
</body>
Will be displayed as :
my page content is determined in these lines.

Compatability
HTMLNETSCAPEINTERNET EXPLORER
4.1N2N3N4N6IE3IE4IE5IE6
YES YES YES YES YES YES YES YES YES

Previous- BLOCKQUOTE - Block quotation  |  Next-BR - Line Break