O'Reilly logo

HTML & CSS: The Complete Reference, Fifth Edition by Thomas A. Powell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX C Colors

This appendix provides basic information about the use of color on the Web. The reference not only covers the defined colors formats, names, and values from the (X)HTML specifications and CSS but presents less obviously standardized but commonly used color names. A brief discussion of the browser-safe color palette is also presented.

(X)HTML Colors

Transitional versions of HTML and XHTML support color settings for text as well as the background color of the document, frame borders, tables, or even individual table cells. There are 16 widely known color names defined in HTML. These names and their associated hex RGB values are shown in Table C-1.

NOTE Color names and values are case insensitive, so red and RED are equivalent, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required