Using this html codes any one can change the table row color. Codes are given below.
1. Open Notepad.
2. write the codes like below.
<html>
<body>
<table style="background-color:#FFFFE0;">
<tr style="background-color:#BDB76B;color:#ffffff;">
<th>Table Header</th><th>Table Header</th>
</tr>
<tr>
<td>Table cell 1</td><td>Table cell 2</td>
</tr>
<tr>
<td>Table cell 3</td><td>Table cell 4</td>
</tr>
</table>
</body>
</html>
3. Now save this as test_heading.html
4. Open the file in any browser and see the output.
See BG Color of whole Table
1. Open Notepad.
2. write the codes like below.
<html>
<body>
<table style="background-color:#FFFFE0;">
<tr style="background-color:#BDB76B;color:#ffffff;">
<th>Table Header</th><th>Table Header</th>
</tr>
<tr>
<td>Table cell 1</td><td>Table cell 2</td>
</tr>
<tr>
<td>Table cell 3</td><td>Table cell 4</td>
</tr>
</table>
</body>
</html>
3. Now save this as test_heading.html
4. Open the file in any browser and see the output.
See BG Color of whole Table