Color Literals
Avoid the hassles of hexadecimal numbers.
Netscape, and hence JavaScript,
allows you to specify colors using string literals. These
colors range from aliceblue to yellowgreen, e.g.,
<FONT COLOR="blueviolet">
This is in blueviolet
</FONT>.
There are no spaces in any of these names;
even mediumspringgreen is a single
text string. Be aware that colors may vary slightly between platforms.
Color perception, on the other hand,
varies dramatically between different background
colors. Contrast the colors in this section with those on the
above black background.
Copyright ©1998 by Charles River Media, All Rights Reserved