Dividing the Table into Horizontal Sections

You can also mark a horizontal section of your table—one or more rows—and then format it all at once. You’ll also be able to draw dividing lines between sections, instead of between individual rows (see page 249).

Figure 16.55. Once the first row is in a thead section, I can define a class of styles for it which will be applied to each cell in the thead.

To divide the table into horizontal sections:

1.
Before the first tr tag of the section you want to create, type <thead, <tbody, or <tfoot.
2.
If desired, define the desired attributes for the section.
3.
Type >.
4.
If necessary, create the section’s ...

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.