HTML Table Color
From w3cyberlearnings
Contents |
HTML Table color
Define Table background color and font color.
Example 1 TRY-IT
Define CSS for the table odd and even row.
<style> .odd { background-color:blue; } .even { background-color:red; } </style>
Example 2 TRY-IT
This example is similar to the first example, but the table border color sets to white.
<style> table { border:1px solid white; } .odd { background-color:blue; color:white; } .even { background-color:red; } </style>
Related Link
Table
- HTML - Table
- HTML - Table Border
- HTML - Table Column
- HTML - Table Row
- HTML - Table Color
- HTML - Table Cell Spacing and Padding
- HTML - Text Align
- HTML - Text Vertical Align
- HTML - Table Caption and Summary
- HTML - Table thead, tbody, tfoot
- HTML - Inner Table
- HTML - Table Vertical Line
- HTML - Table Horizontal Line