HTML Body

BODY indicates the beginning and end of the HTML-document body. Between the start and end tags the text of the document, images and tables are contained. In short, all the HTML-elements responsible for displaying the document, its management and hypertext links. BODY element must occur in the document not more than once.

Attributes:

MARGINHEIGHT - determines the width (in pixels) of upper and lower margins of the document. Only works in Netscape browsers.

TOPMARGIN - determines the width (in pixels) of upper and lower margins of the document. Only works in Explorer browsers.

MARGINWIDTH - determines the width (in pixels) of left and right margins of the document. Only works in Netscape browsers.

LEFTMARGIN - determines the width (in pixels) of left and right margins of the document. Only works in Explorer browsers.

BACKGROUND - sets the image for "filling" the background. The value is assigned in the form of a file name with a picture in GIF or JPG format.

BGCOLOR - specifies the background color of the document.

TEXT - determines the text color in the document.

LINK - determines the color of hyperlinks in the document.

ALINK - determines the color of the highlights when you click hyperlinks.

VLINK - determines the color of hyperlinks to documents that you have already reviewed.

The values of BGCOLOR, TEXT, LINK , ALINK and VLINK attributes are specified by RGB-value in hexademical system. Previously, we were mentioned how to indicate colors in html.

Example:

...
The text of the document.
...
Do not use MARGINWIDTH, MARGINHEIGHT, TOPMARGIN, LEFTMARGIN as they are made only for certain browsers. If the user has another browser, and we are aimed at creating a document that will be readable in all browsers. In principle we advise to leave <BODY> tag without any parameters, because we will put them in the cascade style sheet.
HTML Introduction
HTML concept
HTML Style
Tables in HTML