![]() |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]()
|
FYI: Learn HTML HTML Background Colors |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| To set
the background color of a webpage or a table, you may use the name
of the color, or the HTML equivalent (the hexidecimal color code).
The chart below shows a bunch of colors you can choose.
There are actually only 212 different HTML colors. (The chart below shows some duplicate colors.) Your mileage may
vary. Colors always appear differently, depending on their contexts. That's because our eyes automatically exaggerate contrasts between adjacent colors. This makes it pretty difficult to pick-out exactly the right color from the chart. You will probably need to experiment a little, or choose a few good color codes that are easy to memorize. You may use the color codes below to set the background color (BGCOLOR) for the entire page (<BODY>), or for a Table (<TABLE>), Row (<TR>), Header Row (<TH>), or a Cell (<TD>). Upper and lower case don't matter with these codes. Notice how the cell color -- if specified -- overrides the row color (see "Helen Keller"), and the row color -- if specified -- overrides the overall table color.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Note: Be sure to use a # (pound sign) in front of the codes shown below, and enclose the # and code with double-quotes, as shown above. These codes are not the only ones: you may use any hexidecimal number between 000000 and FFFFFF, such as BB7777 shown above. However, you'll find that HTML only supports 212 different colors.
The following chart shows various colors and their corresponding
RGB color codes in 6-digit hex-tripletl form. The first two digits
represent the saturation of red, the middle two represent green,
and the last two represent blue. So FF0000 means "100% red,
mixed with 0% green, and 0% blue," which is pure red. (See the hexidecimal
to decimal conversion chart.)
For each RGB color (red, green, & blue) there are 6 safe (acceptible, standard) levels: 00, 33, 66, 99, CC, & FF. So there are a total of 216 "standard" colors (6 degrees of red x 6 degrees of green x 6 degrees of blue). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]()
Please report errors, omissions, or technical
problems to URL: http://cwire.com/pub/FYI/HTML/colors.asp CWIRE supports local charities by 1) helping them to create and promote independent websites, 2) promoting their events, 3) syndicating their newsletters and press releases, and 4) recruiting volunteers and donors in the nearby Los Angeles area. Please support CWIRE by advertising with us (or supporting those who do), by referring new merchants, by sending us information to post, and by telling others about CWIRE. HTML and scripts by Robert Marston Copyright © 2007 Community Wire Service unless otherwise noted. All rights reserved. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||