Dividing Your Table into Column Groups
When using tables for displaying tabular data (their classic purpose), you can divide your table into two kinds of column groups: structural and non-structural. The former control where dividing lines, or rules, are drawn (see page 250). The latter do not. Both let you apply formatting to an entire column (or groups of columns) of cells all at once.
Figure 16.49. The first colgroup contains the city names, the second is for the table data.
To divide a table into structural column groups:
1. | After the table (and caption) tags, type <colgroup.
|
2. | If the column group has more than one column, type span="n" ... |
Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.