HTML and CSS Reference
In-Depth Information
<tr>
<td scope="row">Jeff Croft</td>
<td>World Online</td>
<td>http://jeffcroft.com</td>
<td>Author</td>
</tr>
<tr>
<td scope="row">Ian Lloyd</td>
<td>Accessify</td>
<td>http://accessify.com</td>
<td>Author</td>
</tr>
<tr>
<td scope="row">Dan Rubin</td>
<td>Webgraph</td>
<td>http://superfluousbanter.org/</td>
<td>Author</td>
</tr>
</tbody>
<tbody id="editors">
<tr>
<td scope="row">Chris Mills</td>
<td>Apress/friends of ED</td>
<td>http://www.friendsofed.com/bloggED</td>
<td>Editor</td>
</tr>
<tr>
<td scope="row">Wilson Miner</td>
<td>Apple Computer</td>
<td>http://wilsonminer.com</td>
<td>Technical Editor</td>
</tr>
</tbody>
</table>
Here, we've wrapped our first row in the thead element, and also added a second tbody
section for the topic's editors. We haven't used the tfoot element, as this set of data doesn't
have any information appropriate for it. A case where you may use tfoot may be for the totals
at the bottom of a spreadsheet or invoice. You're probably already envisioning ways these
markup additions could be exploited with CSS styles—we'll get to that later in the chapter.
Columns
Tables have always contained the tr element to designate table rows, but only more recently
did columns earn their way into the (X)HTML specifications. However, no current browser
supports using CSS to style columns, so their current benefits are purely semantic and “future
proofing.” If you define columns now, you won't have to when browsers begin supporting the
styling of them; therefore, we've decided to cover them here.
Search WWH ::




Custom Search