Fred Wilson Fred Wilson - 4 months ago 9
CSS Question

CSS "color" vs. "font-color"

Anyone know why CSS provides

color
for text, but does not have
font-color
or
text-color
?

Seems very counter-intuitive, kind of like
text-decoration: underline
rather than
font-style
or something related to fonts.

Does anyone know why/how the W3C came up with such a wide array of CSS names like this?

Answer

I would think that one reason could be that the color is applied to things other than font. For example:

div {
    border: 1px solid;
    color: red;
}

Yields both a red font color and a red border.

Alternatively, it could just be that the W3C's CSS standards are completely backwards and nonsensical as evidenced elsewhere.