Skip to content

Instantly share code, notes, and snippets.

@greggnakamura
Last active May 5, 2017 01:50
Show Gist options
  • Save greggnakamura/1f00f16fd0222129184740a5a56733fa to your computer and use it in GitHub Desktop.
Save greggnakamura/1f00f16fd0222129184740a5a56733fa to your computer and use it in GitHub Desktop.
Accessibility: Table (complex with multiple levels of headers)
<table>
<caption>Shelly's Daughters</caption>
<tbody><tr>
<td></td>
<th scope="col">Name</th>
<th scope="col">Age</th>
<th scope="col">Birthday</th>
</tr>
<tr>
<th rowspan="2" scope="row">by birth</th>
<th scope="row">Jackie</th>
<td>5</td>
<td>April 5</td>
</tr>
<tr>
<th scope="row">Beth</th>
<td>8</td>
<td>January 14</td>
</tr>
<tr>
<th scope="row">by marriage</th>
<th scope="row">Beth</th>
<td>8</td>
<td>January 14</td>
</tr>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment