HTML Table bgcolor

Techno HTML5

Table bgcolor attribute specifies the background color of a table. You can take any type of color with the help of bgcolor attribute.

HTML table bgcolor


<!DOCTYPE>
<html>
<head>
<title>Table bgcolor </title>
</head>
<body>
<table height="150" width="500" border="1"bgcolor="grey">  
<tr> 
<td> Employee Data </td>
<tr>
<td> 
Employee
</td>
<td>
Salary
</td> 
</tr> 
<tr>
<td>
Shiva
</td>
<td> 
20000
</td>  
</tr>
<tr>
<td> 
NEHA
</td>
<td> 
12000
</td>  
</tr>
</table>

</body>
</head>
</html>
Run

Note-1.The table color is set to color "grey" .
2. You can use the coloumns bgcolor( <td bgcolor="green">) Individually.