<table>
where <caption>
content should be accessible nameThe purpose this test is to show the cascade order of how accessible names are applied in the accessibility tree for the <table>
element. The priority order from highest to lowest is:
aria-labelledby
aria-label
<caption>
title
Fishes | Birds |
---|---|
Snapper | Starling |
Salmon | Eagle |
<table>
<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>