Forum Moderators: not2easy
I fixed and validated another site and "antiquewhite" was repeatedly flagged. Both sites use it extensively. I don't see a "safe" color that is close to it, so I may have to make some choices there.
My main question is why it validated for one site and was flagged for the other?
My follow-up question is 'Can I use any hexadecimal code and validate, or do I have to (or should I) stick with the "safe" colors'?.
It is recommended that you use a hex or rgb value for your color attributes. Named colors have been known to cause issues with certain browsers.
Do a search for "named colors" in your favorite SE, that should turn up all the information you are looking for in reference to named colors. Here is one from the W3C...
6.5 Colors [w3.org]
According to the W3C, there are 16 standard color names supported.
For more information and a complete listing of all named color values, check out the MSDN Library...
Using Named Colors in Internet Explorer [msdn.microsoft.com]
I remain curious though about why the W3C validated the usage of "antiquewhite" on one site but not the other. I looked the other way when the first one validated. Now, I'm going to go back and "fix" it anyway.
Can anybody direct me to what docs mention "firebrick" and "antique white" or maybe this is a terminology used in Dream Weaver or Front Page or one of the other web code writing assistants? But in that case the validator would not have recognized it so i guess somehwhere there is an official table with these other named colors and the hex/RGB values they represent?
[turtlefeathers.com...]
This style sheet validates everytime, yet I've used "antiquewhite" as a color value numerous times. (Please overlook the obvious bloat in this document.)
What am I missing? One way or another, I'm wrong. I always am.
Since I know that it is not right I'm going to replace all references with a yet to be decided upon hex#, but I remain confused. Maybe this is just one of those 'It's a mystery' type things. Had the second site not come up with errors, I probably would have just let it go and forgotten about it, even though I knew something wasn't quite right.