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, ...

Get HTML & CSS: The Complete Reference, Fifth Edition, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.