HTML and CSS Reference
In-Depth Information
gical sections that are delimited by different borders. By default, Inter-
net Explorer does not do anything special with the borders around the
headers, footers, and sections within your table. By adding the rules
attribute to the <table> tag, however, you can draw thicker rule lines
between your <thead> , one or more <tbody> , and <tfoot> table sections,
helping readers better understand your table's organization. [ The align
attribute (deprecated), 10.2.1.1 ]
For example, here is the simple table you saw earlier in this chapter,
augmented with a header and footer. Notice that we've omitted many of
the closing tags for brevity and readability of the HTML but that the tags
must appear in an XHTML-compliant document:
<table border cellspacing=0 cellpadding=5 rules=groups>
<caption align=bottom>Kumquat versus a poked eye, by gender</caption>
<thead>
<tr>
<td colspan=2 rowspan=2>
<th colspan=2 align=center>Preference
</tr>
<tr>
<th>Eating Kumquats
<th>Poke In The Eye
</tr>
</thead>
<tfoot>
<tr>
<td colspan=4 align=center>
Note: eye pokes did not result in permanent injury
</tr>
</tfoot>
<tbody>
<tr align=center>
<th rowspan=2>Gender
<th>Male
<td>73%
<td>27%
</tr>
<tr align=center>
 
Search WWH ::




Custom Search