table background color code example
Example 1: tr background color
<table>
<tr bgcolor="#ddd">
<td>First column</td>
<td>Second column</td>
<td>Third column</td>
</tr>
<tr bgcolor="#eee">
<td>First column</td>
<td>Second column</td>
<td>Third column</td>
</tr>
<tr bgcolor="#ddd">
<td>First column</td>
<td>Second column</td>
<td>Third column</td>
</tr>
</table>
Example 2: how to make the background color of a table white
<table bgcolor="color">
Example 3: how to align table in html
.centerTable { margin: 0px auto; }