HTML colgroup Tag
HTML colgroup Tag
The colgroup tag specifies a group of one or more columns in a table for formatting. The colgroup tag is useful for applying styles to entire columns. It must come after table tag and before any other tag which is present in the table like thead, tbody, tr, td, and th. For defining properties to column in colgroup, we use col tag within colgroup tag.
Attribute Explanation:-
Attribute | Value | Description |
---|---|---|
span | number | Specifies the number of columns a column group should span |
Syntax:-
Its syntax is:- < colgroup >