Learn HTML Code Tutorial Reference Guide

Attribute for <TD ...>
BGCOLOR = color expression

BGCOLOR sets the background color of a single cell in a table. For example, this code sets the background color of the "grapefruit" cell to pink:

this code produces this
<TABLE CELLPADDING=8>
<TR>
   <TD>lemons</TD>
   <TD BGCOLOR="#FF6699">grapefruit</TD>
   </TR>
<TR>
   <TD>bananas</TD>
   <TD>pineapple</TD>
   </TR>
</TABLE>
lemons grapefruit
bananas pineapple

You can also set the background colors of the entire table with <TABLE BGCOLOR="..."> and of rows with <TR BGCOLOR="...">.

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial