HTML Tutorials

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="...">.




Recommended Resources

web hosting tutorials
Credit Help
Search the Internet
Search Engine Help
Low Fat Lifestyle
Internet Traffic
Web Hosting
Web Design

Discount Hotel Reservations

Search The Internet


Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.
About the author

All Rights Reserved, Copyright © Free-HTML-Tutorials.com 2003
A service of 1stHostWeb.com