![]() |
|
Menu
Online Stores
Search this Site
Miscellaneous |
Path = Home : HTML Design Tips : How To Add Background Colors To Tables How To Add Background Colors To Tables
The <table> tag is the HTML tag used to create a table on a web page. To add background color to a table you use bgcolor="#color value " where #color value is the hex value for the color you want. The same background color for all the table<table width="460" border="1" cellpadding="5" cellspacing="0" bgcolor="#00CCFF">
The same background color for each column in the table<table width="460" border="1" cellpadding="5" cellspacing="0" bgcolor="#00CCFF">
Different background colors for each column in the table<table width="460" border="1" cellspacing="0" cellpadding="5">
Different background colors for each column and row in the table<table width="460" border="1" cellspacing="0" cellpadding="5">
|