Resources | Colors | IE Colors

IE Colors:


When Internet explorer encounters a text value (ex. "BLUE") as the value for the COLOR attribute of an HTML Tag, it first looks to see if that name is in a list of predefined color values. ( Click Here for the Names or Click Here to see the Colors ) Each of these color names has the appropriate Hex value attached to it. When IE comes across the color name, it actually interprets the name as a Hex value (whereas Netscape will just keep the color name instead of the Hex value).

So what happens if you set the COLOR attribute to a name that is not on that list?
IE attempts to convert that name into a Hex value. Any letter that is not between A-F, or any number not between 0-9, is changed into a 0.

For example, let's say that you set COLOR="acolor". "acolor" is converted into "ac0000", so IE would interpret the attribute as COLOR="&ac0000".

Both IE and Netscape take Hex values and convert them into RGB Values for your monitor to display. You can test out Hex and RGB values here.


Comment on this article or ask us a question: click here !
armbrustconsulting.com