Using Colors


Colors are specified in HTML within the <BODY> tag. This is done by adding attributes, or modifiers to the tag. Here is the syntax:

<BODY BGCOLOR="#rrggbb" TEXT="#rrggbb" LINK="#rrggbb" ALINK="#rrggbb" VLINK="#rrggbb">

Where "#rrggbb" is the value of the color you want. The value of the color must be in quotation marks and preceded by the number sign.

BGCOLOR is the attribute for the background color.

TEXT is the attribute for the color of the text, or foreground.

LINK is the attribute for the color of the hypertext, or links.

ALINK is the attribute for the color of the link while it is being clicked on.

VLINK is the attribute for the color of links previously visited.

Some browsers allow you to specify the background color of a table. The syntax for this is:

<TABLE BGCOLOR="#rrggbb">
I understand how to use colors in HTML. How can I have a fancy background?
[INDEX] [PREVIOUS] [NEXT PAGE] [CHAPTER 10]

Valid HTML 3.2!