Color Can Add Vitality and Life to a Dull Web Page
When you're starting to create your Web page, keep in mind that there are many ways to add interest and vitality to your site. A great way is to use color. Color can be used in tables, as backgrounds, and fonts.
Named Colors
There are different ways of adding color to your pages. One of the easiest ways is to used named colors. These are just what you think they are: color names like red, blue, green, and purple.
But some browsers don't render color names, or they render them different than other browsers. So, that's why it's better to use hexadecimal codes for your color names.
Hexadecimal Codes
These are the codes that define colors. They are groups of three hexadecimal (base 16) numbers. The first number is red, the second green, and the third blue. Each hexadecimal number is an RGB triplet. 00 is the lowest hue, and FF is the highest. For example, red is ff0000, blue is 0000ff, green is 00ff00, and purple is 990099.
Putting Color in Documents
The most common method of putting color in your documents is with the <style> attribute. Choose the color you would like your text to be, enclose it in a span tag, and use the style attribute to assign a color. e.g. <span style="color : #ff0000">red</span> red
Another way to add color is to use it as a background color on tables. Just add the attribute "bgcolor" to the table, tr, td, or th tags. You can add color to your entire page with the bgcolor attribute on your body tag.
Using CSS to add color is just as easy. And you can do some interesting things. You can change the font color or change the background color. To change the background color, use the "background-color" style attribute, e.g. style="background-color : #ccccff".

Tutorials » •