HTML <colgroup> Element: Group Columns and Apply Styles
The '
Here is an example of how '
<table>
<colgroup>
<col style='background-color: lightblue;'>
<col style='background-color: lightgreen;'>
<col style='background-color: lightyellow;'>
</colgroup>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
<td>Data 3</td>
</tr>
</table>
In this example, the '
Note that the '