<table>
where title
should be accessible descriptionThe purpose this test is to show the cascade order of how accessible descriptions are applied in the accessibility tree for the <table>
element. The priority order from highest to lowest is:
aria-describedby
value.title
value (as per the "Rabbit" example below).This example should not be considered proper practice, and is for testing purposes only.
Fishes | Birds |
---|---|
Snapper | Starling |
Salmon | Eagle |
<table title="rabbit">
<caption>Animals</caption>
<thead>
<tr>
<th>Fishes</th>
<th>Birds</th>
</tr>
</thead>
<tbody>
<tr>
<td>Snapper</td>
<td>Starling</td>
</tr>
<tr>
<td>Salmon</td>
<td>Eagle</td>
</tr>
</tbody>
</table>