As anyone who codes CSS knows, the
color property in CSS defines the color of the text in a specified element. I’ve often wondered why this property was not named
text-color or something similar.
A comment that was posted today on one of my older articles by someone named Stu Goymer actually instigated my research into this, but he raised an interesting point: Why doesn’t the
font shorthand property allow the
color to be defined?
Well, according to the spec, here’s what the
color property is supposed to do: