Menu
The col tag provides the ability to specify column properties within the <colgroup> element.
The col tag allows for applying CSS styles to entire columns instead of repeating for each cell or row.
<table>
<colgroup>
<col span="2" style="font-weight:700">
<col style="font-weight:400">
</colgroup>
<tr>
<td>This font has a weight of 700</td>
<td>This font has a weight of 700</td>
<td>This font has a weight of 400</td>
</tr>
<tr>
<td>This font has a weight of 700</td>
<td>This font has a weight of 700</td>
<td>This font has a weight of 400</td>
</tr>
</table>User-submitted codepen.io examples of <col> ↴
Submit a codepen.io link that demonstrates <col>: