HTML Table Colgroup
HTML Table Colgroup
The colgroup element in HTML is used to group columns within a table. It allows you to apply styles or attributes to a group of columns simultaneously, making it easier to manage table layouts and styles.
Basic Usage
HTML
<table>
<colgroup>
<col style="background-color: #f2f2f2;">
<col style="background-color: #ddd;">...