HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Background Color
Color Codes
Table Color
Text Color
Table Color
229
Table Cell Color
Description
To 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
<table border="1" width="100" height="100"><tr> <td bgcolor="#C0C0C0">The Background Is Gray </td> </tr></table>
Advertisements