HTML 5: The Markup Language (ARIA Edition)

colgrouptable column group # T

The colgroup element represents a group of one or more columns in the table that is its parent.

Content model #

Attribute model #

Element-specific attributes #

span = integer.positive
The number of columns in the group.

Tag omission #

A colgroup element's start tag may be omitted if the first thing inside the colgroup element is a col element, and if the element is not immediately preceded by another colgroup element whose end tag has been omitted.

A colgroup element's end tag may be omitted if the colgroup element is not immediately followed by a space character or a comment.

Permitted contexts #

Typical default display properties #

colgroup {
display: table-column-group; }