Horje

How to add background-color to a table row (with CSS) on HTML <tr> Tag

Add background color to first table row.

index.html
Example: HTML
 <table>
  <tr style="background-color:#FF0000">
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
 </table> 

Output should be:

How to add background-color to a table row (with CSS) on HTML <tr> Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin