How do you add color to a < table > in HTML?

 How do you add color to a < table > in HTML?


<style type="text/css">

  table          {border:ridge 5px red;}

  table td       {border:inset 1px #000;}

  table tr #ROW1  {background-color:red; color:white;}

  table tr #ROW2  {background-color:white;}

  table tr #ROW3  {background-color:blue; color:white;}

  table td #CELL9 {border:inset 4px red; background-color:navy;}

</style>

<table>

      <tr id="ROW1">
<td>Cell 1.1</td>
<td>Cell 1.2</td>
<td>Cell 1.3</td>
  </tr>


        <tr id="ROW2">
<td>Cell 2.1</td>
<td>Cell 2.2</td>
<td>Cell 2.3</td>
  </tr>


        <tr id="ROW3">
<td>Cell 3.1</td>
<td>Cell 3.2</td
<td id="CELL9">Cell 3.3</td>
  </tr>


</table>


Output Image 
After add color to a table in html 
How do you add color to a < table > in HTML?


Comments

Last 7 Days

How to use sandbox attribute value ( allow-popups ) with < iframe > tag in HTML ? with example

table background-color css

what is solidity programming language ?

How to add Amazon website inside iframe?

How to Create a table in html with 2 rows and 3 columns (Source code )

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

How to use loop attribute with < video > tag in HTML for YouTube ? with example

All 35 reserved keywords in Solidity programming language