|
Posted by Jukka K. Korpela on 11/21/06 09:38
Scripsit Toby Inkster:
> Netscape, who invented the <FONT> element and most of the early
> presentational HTML (much of which found its way into the HTML 3 and
> HTML 4 standards), based its colours on the X11 system. This has
> about 140 named colours.
Named colors should never have been taken into HTML (or CSS). Someone might
say that black and white would be OK, but they can easily be written as #000
and #fff in the short CSS notation (and even shorter notations could have
been defined, allowing #0 and #f).
The existence of color names makes authors use these colors, most of which
are generally unsuitable in web authoring. This applies particularly to
those colors that have been defined in HTML and CSS specifications, such as
red, blue, and yellow. They are far too strong for most sensible purposes.
The right thing to do use to use color charts or color design utilities that
let you compare and tune your colors and produce their hex code numbers.
> (Note that these standards also added grey as a
> synonym for gray, including all its variants -- dimgrey, lightgrey,
> etc.)
Strangely enough, IE (both 6 and 7) refuses to recognize grey. This is of
course the only right thing to do according to existing CSS specifications:
a declaration with an unknown (by the spec) keyword _shall_ be ignored.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Navigation:
[Reply to this message]
|