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), ]
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>
<td colspan=2 rowspan=2>
<th colspan=2 align=center>Preference
<th>Eating Kumquats
<th>Poke In The Eye
<td colspan=4 align=center>
Note: eye pokes did not result in permanent injury
<tr align=center>
<th rowspan=2>Gender
<tr align=center>
Search WWH ::

Custom Search