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.
Syntax:
<table><colgroup><col /></colgroup><tr><td></td></tr></table>
Attributes:
- id, class (document-wide identifiers)
- lang (language information), dir (text direction)
- title (element title)
- style (inline style information)
- align, char, charoff, valign (cell alignment)
- span, width (column group specific)
- onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events)
Example
HTML column grouping elements:
Comments
No comments have been made yet.
Please login to leave a comment. Login now