Color Attributes


.

<HTML Attributes to Specify Color>


<BODY BGCOLOR="#ff6600">
sets the background color for the page as a whole.


<BODY TEXT="#ff6600">
sets the text color for the page as a whole.


<BODY LINK="#ff6600">
sets the unvisited link color for the page as a whole.


<BODY VLINK="#ff6600">
sets the visited link color for the page as a whole.


<BODY ALINK="#ff6600">
sets the activated link color (i.e. the color of the link as users click on it) for the page as a whole.


All these attributes should be specified in a single <BODY> tag.

<BODY BGCOLOR="HexCode" TEXT="HexCode" LINK="HexCode" VLINK="HexCode" ALINK="HexCode">


<FONT COLOR="#cc6600">sample text</FONT>
sets the color of selected text within a page.


<TABLE BGCOLOR="#ff6600">
sets the background color for an entire table.


<TH BGCOLOR="#ff6600">
sets the background color for one header cell within a table.


<TD BGCOLOR="#ff6600">
sets the background color for one data cell within a table.



HTML Hex Color Code Table