Column groups are assigned to make structural division between columns. In combination with style sheets they make powerful tool for highlighting differences or similarities amongst the columns.

The <colgroup> element creates a column group via attribute span. The <col /> element allows sharing attributes amongst several columns without grouping them together.

The <col /> is an empty tag, therefore the closing tag is forbidden.


<table><colgroup><col /></colgroup><tr><td></td></tr></table>



HTML column grouping elements:


›› go to examples ››