Row and Column Grouping

Row Groups

Dividing the table into manageable groups facilitate the application of style rules. Any style applied to the 3 elements are inherited by the rows those element contain. The 3 elements are: thead, tbody, and tfoot.
The table header, table body, and the table foot must all contain the same number of columns plus the parts must be in this order.

<table>
<thead>
<tr> </tr>
</thead>

<tbody>
<tr> </tr>
</tbody>
<tfoot>
<tr> </tr>
</tfoot>
</table>

Column Groups

Column groups are defined using the colgroup element. This element allows individual columms to be formatted.
<colgroup>
columns, columns, columns
</colgroup>

<table>
<colgroup>
<col class= "column1" />
<col class= "column2" />
<col class= "column3" />
</colgroup>
<tr>
<td>table data</td>
</tr>

Table Summary

The summary attribute is placed in the table element. It has the same role as the image alt attribute. Since text browsers do not display tables therefore a summary of the table contents is very useful.

<table summary=" text">


Web Design with XHTML Part II
Doris Cuffey, Instructor