Tags Reference
Defines a group of columns in a table for formatting
Two colgroup elements that specify different alignment and style for the three columns in the table (notice that the first colgroup element spans two columns):
| ISBN |
Title |
Price |
| 3476896 |
My first HTML |
$53 |
The <colgroup> tag is used to group columns in a table for formatting.
The <colgroup> tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row.
The <colgroup> tag can only be used inside a table element.