Standard Color Names
Colors may also be identified by predefined color names. The syntax for using color names is extremely straightforward.
<body link="navy">
HTML 4.01 and XHTML 1.0 include 16 valid color names. They are listed here with their equivalent RGB values:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
These color names may be used with stylesheets as well. The CSS
2.1 Recommendation adds orange
(#FFA500 ) to this list for a total
of 17 supported colors. CSS 3 supports 140 additional standard color
names that are widely supported by browsers, but they are not valid
for use in (X)HTML documents.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access