I know and use a few color names like 'white', 'blue', 'red', is there a complete list of colors allowed in HTML/CSS ?
A:
The W3C HTML and CSS standards have listed only 16 valid color names: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
From this site:
sohum
2009-10-12 05:02:00
Umm.... why did this get voted down? My response was up before the one selected as the answer.
sohum
2009-10-12 14:22:08
Sorry, don't know why you were voted down.
Nimbuz
2009-10-12 15:09:24
+2
A:
There are a plethora of colors listed at http://www.w3schools.com/HTML/html_colornames.asp. There's also a cautionary note at the bottom:
Note: The names above are not a part of the W3C web standard.
The W3C HTML and CSS standards have listed only 16 valid color names: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
If you want valid HTML or CSS use the HEX values instead.
John Kugelman
2009-10-12 05:02:38