Attribute for
<COL ...> BGCOLOR
<TABLE BORDER CELLPADDING=5> <COL BGCOLOR="#CCCC99"> more table rows </TABLE> which gives us this table
You might find it easier to use styles to set colors, especially if you also want to set the color of fonts. For example, suppose we want to set the background color of the first column to red and the font color to white. First we would put a set of styles rule like this in the
<STYLE TYPE="text/css"> <!-- .redcol { background-color:red; color:white; } --> </STYLE>
Thse styles create a class named
<TABLE BORDER CELLPADDING=5> <COL CLASS="redcol"> <TR> <TH>Name</TH> <TH>Price</TH> <TH>Status</TH> </TR> more table rows </TABLE> which gives us this table
|