HTML 3.2 Extensions
- BGCOLOR="#rrggbb"
- Sets the background color to the specified RGB color value,
where RR GG and BB are the hexadecimal color codes for the Red, Green and Blue
levels, ranging from 0 to 255 -- that is, 00 to FF. The
color "000000" is black, while "FFFFFF" is
white. If there is also a background image, the
BGCOLOR is used as the color underneath the background image --
if the background image is transparent, this is the color that shows through.
Example: <BODY BGCOLOR="#00FFFF">
TEXT="#rrggbb"
- Sets the default text color to the specified RGB color value.
Example: <BODY TEXT="#FF00FF">
LINK="#rrggbb"
- Sets the default text color of hypertext anchors to the specified
RGB color value.
Example: <BODY LINK="#AAAA00">
VLINK="#rrggbb"
- Sets the default text color of visited hypertext links to
the specified RGB color value.
Example: <BODY VLINK="#FFFFFF">
Most browsers also support special color names (white,
blue, etc.).
Here's an example document:
<HTML>
<HEAD>
<TITLE> Body Attribute Examples </TITLE>
</HEAD>
<BODY BACKGROUND="anotherimage.gif" BGCOLOR="#FF0000"
LINK="#00FF00" VLINK="#FFFF00" TEXT="blue">
In this example,
* background image is anotherimage.gif,
* the background color (bgcolor) is red (#FF0000),
* links in the document are green (#00FF00),
* visited links are yellow (#FFFF00),
* regular text is blue (blue).
</BODY>
</HTML>