Table Color
Table Cell Color
DescriptionTo add color to one of your table cells, you will need to add the line BGCOLOR="#xxxxxx" to the <td> tag that you want colored, so the final result looks like this.

<td bgcolor="#xxxxxx">

The xxxxxx, is replaced with the color code of your choice.
Code
<table border="1" width="100" height="100"><tr>

<td bgcolor="#C0C0C0">The Background Is Gray </td>

</tr></table>
Output
The Background Is Gray
Practice
Advertisements