: The COLGROUP Element
Last updated: 2026-09-12
<colgroup>The COLGROUP Element
A container grouping table columns, wrapping col elements to define column styles in bulk.
| Category | Tables |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </colgroup> tag |
| Status | Standard |
📝 Syntax
<colgroup>
<col>
</colgroup>
⚙️ Attributes
This element supports the global attributes plus the following:
| Attribute | Value | Description |
|---|---|---|
span | Columns covered when no col children are present. |
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <colgroup> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: When col children exist, colgroup's span is ignored; place it after caption, before thead.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.