Using Color Names
One way to specify color is by using a set of predefined color names.
The most intuitive way to call a color in a Web page is by its name: "red" or "wheat," for example. The color names date back to old UNIX standards.
When you use a color name as an attribute, make sure you surround it with quotation marks to make it HTML and XML compliant, but be sure you're nesting single and double quotes correctly. For example, this uses inline CSS to set a background color value of "black" and a text color of "aqua." Note the use of nested single and double quote marks:
<td style="color:'aqua'; background-color:'black';">This is table cell element with color and background colors set via CSS. If you don't see the effect, your browser isn't CSS-compliant.
| This is a td element with color and background colors set via CSS. If you don't see the effect, your browser isn't CSS-compliant. |
This chart shows the standard names. Click on the alphabet example beside each color name to turn the background the specified color.
Click here to go to HTML Basics: Choosing a Color