HTML Attributes to Specify Color
If one of the following <BODY> attributes is used, they all should be specified in order to avoid color conflicts; for example, you may assign a backgound color and a visitor may have his/her browser set to display text in the same color, making your page unreadable.
All these attributes should be specified in a single <BODY> tag
- <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
- <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
