HTML Table Colgroup
Style whole columns at once with colgroup.
A <colgroup> holds one or more <col> elements, each styling an entire column without repeating the style on every cell.
Styling a column
<!DOCTYPE html>
<html>
<body>
<table>
<colgroup>
<col style="background:#e5fff5;">
<col>
</colgroup>
<tr>
<th>Name</th>
<th>Role</th>
</tr>
<tr>
<td>Asha</td>
<td>Designer</td>
</tr>
<tr>
<td>Ravi</td>
<td>Developer</td>
</tr>
</table>
</body>
</html>