<Related pages> | ||||
| ||||
There are several HTML elements with attributes to specify a color. There are two ways to do this :
color="#RRGGBB"
where RRGGBB
is a
hexadecimal value for the amount of red (RR
), green
(GG
) and blue (BB
) in the desired color.
The range for the specified value for RR
, GG
and BB
is 00 thru FF where 00 means no color and FF the
maximum amount. This range corresponds with the decimal range 0 - 255.
So, the color FF0000 means bright red and 808080 is a medium gray.
RRGGBB
values, just the names. For example
color="black"
. Downside is that there's not a name
for every possible color. Also the official specification only includes
the sixteen standard colors, so using any of the other colornames will
not be valid HTML 4.0.
<TABLE border width="25%">
| ||
| ||
<TABLE border width="25%">
| ||
|