May 2003
Intermediate to advanced
480 pages
10h 9m
English
Elements that can be displayed in colors defined through style rules are:
backgrounds
borders
text
links
outlines
I've listed that last one for the sake of completeness. Outlines are not widely supported in any significant percentage of the browsers available today, so we won't spend time discussing them here. Refer to the outline property in Appendix B, if you're curious.
When you specify a color for any CSS property that accepts color values, you have a choice of several methods:
descriptive color names
system color names
RGB decimal values
RGB hexadecimal values (including a three-character shorthand)
RGB percentage values
The most human-readable way to specify colors in HTML is to use key words ...
Read now
Unlock full access