The <BODY> Tag

The <BODY> tag is another required element in any HTML document. All formatted text in an HTML document must be contained with the opening and closing HTML tags. Within the <BODY> tag you can also affect the background of your web page, the color of your text and your links with the following parameters.

BACKGROUND="image file"
The BACKGROUND parameters allows the HTML author to include a graphical background on your web page. The image included could be a 256-color GIF or a full-color JPEG file. The BACKGROUND parameter will always override the background color given by BGCOLOR.
BGCOLOR="color name | #rrggbb"
The BGCOLOR parameter will set the background of the web page to either the color name given (i.e. BLUE) or to the color represented by the hexdecimal values for red, green and blue.
ALINK="color name | #rrggbb"
The ALINK parameter will set the default color for any hypertext link on the web page that has been clicked on and is beginning to be loaded.
LINK="color name | #rrggbb"
The LINK parameter will set the default color for all non-visited hypertext links on the web page.
VLINK="color name | #rrggbb"
The VLINK parameter will set the default color for all visited hypertext links on the web page.
TEXT="color name | #rrggbb"
The TEXT parameter will set the default color of all text on the web page.

Some Examples...

 

HTML Code Result
<HTML>
<BODY>
Formatted text goes here...
</BODY>
</HTML>
Formatted text goes here...
<BODY BGCOLOR="BLUE">
<B>Your Text Here</B>
</BODY>
  Your Text Here
<BODY BACKGROUND="water.GIF"> water background
<BODY ALINK="RED" VLINK="BLUE"> Been Here

Haven't Been Here