Using Color
Microsoft® Internet Explorer 3.0 allows you to use the following colornames. These supported colornames can
be used with the BODY, FONT, HR, MARQUEE, and TABLE tags which are outlined below.
Note: This feature is not compatible with Netscape v2.0.
HTML Features Which Use Colornames
BODY
The following attributes can be used with the BODY tag to set color attributes.
Attribute |
Explanation |
Example |
Source |
BGCOLOR |
Sets the background color of the page. |
<BODY BGCOLOR=NAVY> |
IExplore |
TEXT |
Sets the text color for the page. |
<BODY BGCOLOR=NAVY TEXT=BLACK> |
IExplore |
LINK |
Sets the link color for the page. |
<BODY BGCOLOR=NAVY TEXT=BLACK LINK=RED> |
IExplore |
VLINK |
Sets the vlink (already viewed link) color for the page. |
<BODY BGCOLOR=NAVY TEXT=BLACK LINK=RED VLINK=BLACK> |
IExplore |
FONT
The following attribute can be used with the FONT tag to set the color of the font.
Attribute |
Explanation |
Example |
Source |
COLOR |
Sets the color of the font. |
<FONT COLOR=BLUE> |
IExplore |
HORIZONTAL RULE
The following attribute can be used with the HR tag to set the color of the horizontal rule.
Attribute |
Explanation |
Example |
Source |
COLOR |
Sets the color of the rule. |
<HR COLOR=RED> |
IExplore |
MARQUEE
The following attribute can be used with the MARQUEE tag to set the background color of the marquee.
Attribute |
Explanation |
Example |
Source |
BGCOLOR |
Sets the background color of the marquee. |
<MARQUEE BGCOLOR=YELLOW> |
IExplore |
TABLE tags (TABLE, TH, TR, and TD)
The following attributes can be used with the TABLE, TH, TR, and TD tags to set color attributes.
Attribute |
Explanation |
Example |
Source |
BGCOLOR |
Sets the background color. |
<TABLE BGCOLOR=WHITE> |
IExplore |
BORDERCOLOR |
Sets the border color, and must be used with the BORDER attribute. |
<TABLE BORDER> <TR BORDERCOLOR=BLUE> |
IExplore |
BORDERCOLORLIGHT |
Sets the color of bordercolorlight, one of the two colors used to draw a 3-D borders, and must be used with the BORDER attribute. |
<TABLE BORDER> <TD BORDERCOLORLIGHT=RED BORDERCOLORDARK=GREEN> |
IExplore |
BORDERCOLORDARK |
Sets the color of bordercolordark, one of the two colors used to draw a 3-D borders, and must be used with the BORDER attribute. |
<TABLE BORDER> <TD BORDERCOLORLIGHT=RED BORDERCOLORDARK=GREEN> |
IExplore |
Back to: HTML Specification Home Page
© 1996 Microsoft Corporation