<colgroup>
Learn how colgroup works in HTML.
The colgroup
tag in HTML is used to format a group of columns in a table. It is used to set the properties of the columns altogether instead of manipulating individual ones.
The
colgroup
tag is used inside thetable
element and along with thecol
tag in HTML.
The illustration below shows how the colgroup
tag works in HTML:
Syntax
The syntax of colgroup
tag is as follows: