February 2006
Intermediate to advanced
826 pages
63h 42m
English
You can specify color values by name as follows:
h1 {color: olive;}The CSS 2.1 specification accepts only 17 color names for use in style sheets (CSS 1 and CSS 2 had only 16 names; orange was added in Version 2.1.) The color names are:
|
aqua |
green |
orange |
white |
|
black |
lime |
purple |
yellow |
|
blue |
maroon |
red | |
|
fuchsia |
navy |
silver | |
|
gray |
olive |
teal |
Other names from the complete list of color names may be supported by some browsers. For the complete list, see Appendix D.