Menu
The colgroup
tag, or Table Column Group element, groups together one or more columns in a table so that they can be formatted within the <col>
tag.
Example:
<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 <colgroup>
↴
Submit a codepen.io link that demonstrates <colgroup>
: