DEV 8.1 Data tables: simplify and mark up with special HTML
Compare with WAI & NDA checkpoints
NDA checkpoints: 1.9, 1.10 (P1) / 3.7, 3.8 (P3)
NDA checkpoints: 1.9, 1.10 (P1) / 3.7, 3.8 (P3)
Examples
Example code of a simple table showing use of summary, <caption>, <th>, abbr, and scope:
<table summary="Important childrens birthdays to remember. First column: childs name, second: childs age, third: date of birthday" >
<caption>Important Birthdays</caption>
<tr>
<th scope="col" abbr="Name" >
Name</th>
<th scope="col" abbr="Age" >
Age</th>
<th scope="col" abbr="Date" >
Date of Birthday</th>
</tr>
<tr>
<th scope="row">Emily</th>
<td>8 years</td>
<td>3 September</td>
</tr>
<tr>
<th scope="row">Jack</th>
<td> 12 years</td>
<td> 28 April</td>
</tr>
</table>
