This is taken from the W3C specification. And this clearly suggests that names are depreciating. Its only preserved for obsolete reasons.
Techniques:
Use numbers, not names, for colors.
Example.
Use numbers, not names, for colors:
H1 {color:
H1 {color: rgb(50%,50%,0%)}
Deprecated example.
H1 {color: red}
Use these CSS properties to specify colors:
'color', for foreground text color.
'background-color', for background colors.
'border-color', 'outline-color' for border colors.
For link colors, refer to the :link, :visited, and :active pseudo-classes.
footy source
share