<colgroup> Description:
The <colgroup></colgroup> tag creates and defines an explicit column group in a table.
<colgroup> Web Browser Support:
- Netscape 6, 7
- Mozilla 1
- Firefox 1
- Internet Explorer 4, 5, 6
- Opera 6, 7, 8
- Safari 1
- HTML 4.0
- XHTML 1.0
Tables Module
<colgroup> Attributes:
- align (optional)
- char (optional)
- charoff (optional)
- class (optional)
- dir (optional)
- id (optional)
- lang (optional)
- onclick (optional)
- ondblclick (optional)
- onkeydown (optional)
- onkeypress (optional)
- onkeyup (optional)
- onmousedown (optional)
- onmouseout (optional)
- onmouseover (optional)
- onmouseup (optional)
- span (optional)
- style (optional)
- title (optional)
- valign (optional)
- width (optional)
<colgroup> End Tag:
</colgroup> Usually omitted in HTML 4. Required in XHTML.
<colgroup> Contents:
column contents. The following tag is valid within the <colgroup></colgroup> tag:
col
<colgroup> Valid Context:
The <colgroup></colgroup> tag is valid within the following tag:
table
<colgroup> Usage:
- a table using columns and colgroups
<table rules="cols" width="300"> <colgroup align="center" span="2"></colgroup> <colgroup valign="bottom"></colgroup> <tr><td> column one should be aligned to the center of this column. </td><td> col 2 is part of the same group. </td><td> and the third to the bottom. </td></tr> </table>
<colgroup> Special Notes:
- The function of this tag is to provide more control over the look and feel of the individual columns in a table.
- Use this tag judiciously, as it's not well supported even in the browsers that support it.

