|
Each color displayed on a webpage has a code number.
Basic colors can sometimes be assigned by the actual word, i.e., red, but you
will frequently have to use (not memorize) the numbers associated with specific
colors. Some of the web items--other than graphics--that can have colors
are backgrounds (page, table, cell), text, links, followed links, active links,
and hover links.
| |
|
|
|
|
|
|
#FFFFFF |
#000000 |
#C0C0C0 |
#0000FF |
#FF0000 |
#CC99FF |
Below is an example of code specifying three things about a
table cell: the text in the cell is center- aligned, the width of the cell is
15% of the table, and the background color is red.
<td ALIGN=CENTER WIDTH="15%" BGCOLOR="#FF0000">Whatever
Text</td>
You can specify the color of an item through FrontPage
commands, just as you would in Word, or through the use of a linked style sheet. For example, on this
webpage, the color of the links is controlled with a style sheet that is linked to
all pages in this section of the website. (The color in the words at the
top of the page is in a graphic.)
|