Background Color

There are attributes which can be added to tags that produce background and text color. Simply add an attribute to the <BODY> tag called BGCOLOR. To produce the background color that you see on this page use:
<BODY BGCOLOR="#e6e6ae">

Table cells can have their own backgrounds.

Versions of Netscape lower than 3.0 do not support background color in tables. If you cannot see the background color here that might be the reason.

If you want your table to have one background color (like the one you see here) simply add BGCOLOR="#8b864e" to the <TABLE > tag.
<TABLE BGCOLOR="#8b864e">

Table cells can have their own
font colors.

To change the font color in a table cell add COLOR="#e6e6ae" to the <FONT> tag (to see the color in the above cell).
<FONT COLOR="#e6e6ae">

Tables are fun!



Colors are cool!

To add color to individual table cells add the BGCOLOR and hexidecimal number to the (table data) <TD> tag.
<TD BGCOLOR="#a0522d">

bgcolor=red
bgcolor=blue
bgcolor=green
bgcolor=yellow
bgcolor=pink
bgcolor=purple
bgcolor=brown
bgcolor=black
bgcolor=orange
bgcolor=gold
bgcolor=silver

You can also use color names for the value of BGCOLOR.


Search The Global Classroom
Patricia A. Weeg
pweeg@shore.intercom.net
Return to Global Classroom