HTML and CSS Reference
In-Depth Information
Introduce Table Descriptions
Add a caption element and/or a summary attribute to each table. Add a th element for each row or column
label.
Code View:
<table>
<tr>
<td>Species</td>
<td>Spring</td>
<td>Summer</td>
<td>Fall</td>
<td>Winter</td>
</tr>
<tr>
<td>Pied-Billed Grebe</td>
<td>Uncommon</td>
<td>Very rare</td>
<td>Uncommon</td>
<td>Fairly Common</td>
</tr>
<tr>
<td>Mourning Dove</td>
<td>Common</td>
<td>Common</td>
<td>Common</td>
<td>Common</td>
</tr>
<tr>
<td>Worm-eating Warbler</td>
<td>Uncommon</td>
<td>Rare</td>
<td>Very rare</td>
<td>Not Present</td>
</tr>
</table>
<table summary="The Pied-billed grebe spends the winter.
The Worm-eating Warbler passes through on migration,
while the Mourning Dove is a year-round resident.">
<caption>Species Frequency in Prospect Park</caption>
<tr>
<th scope="col">Species</th>
<th scope="col">Spring</th>
<th scope="col">Summer</th>
<th scope="col">Fall</th>
<th scope="col">Winter</th>
</tr>
<tr>
<th abbr="pied-billed" scope="row">
Search WWH ::




Custom Search