Skip to content

Instantly share code, notes, and snippets.

@qasimalyas
Created December 14, 2010 16:01
Show Gist options
  • Save qasimalyas/740619 to your computer and use it in GitHub Desktop.
Save qasimalyas/740619 to your computer and use it in GitHub Desktop.
Example of an accessible table
<table summary="contains accessible tablular data">
<thead>
<tr>
<th scope="col">Column 1</th>
<th scope="col">Column 2</th>
<th scope="col">Column 3</th>
</tr>
</thead>
<tfoot><tr><td colspan="3">End table</td></tr></tfoot>
<tbody>
<tr>
<th scope="row">Row A</th>
<td>data</td>
<td>data</td>
</tr>
<tr>
<th scope="row">Row B</th>
<td>data</td>
<td>data</td>
</tr>
<tr>
<th scope="row">Row C</th>
<td>data</td>
<td>data</td>
</tr>
<tr>
<th scope="row">Row D</th>
<td>data</td>
<td>data</td>
</tr>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment