views:

190

answers:

4

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:

http://www.w3schools.com/css/css_colornames.asp

sohum
Umm.... why did this get voted down? My response was up before the one selected as the answer.
sohum
Sorry, don't know why you were voted down.
Nimbuz
+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
A: 

CSS3-color has the complete list.

Ms2ger