aria-label<button aria-label="Buy">
</button>
Pass criteria: The <button> has a name of "Buy" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
<button aria-label="Add to cart">
Add
</button>
Pass criteria: The <button> has a name of "Add to cart" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
<nav aria-label="Primary">
</nav>
Pass criteria: The <nav> has a name "Primary" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
<ul role="menu" aria-label="Actions">
<li role="menuitem">Item 1</li>
<li role="menuitem">Item 2</li>
<li role="menuitem">Item 3</li>
</ul>
Pass criteria: The <ul> has a name "Actions" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
This pattern is shown for demonstration purposes only and is not recommended in production.
<span role="img" aria-label="Open">
</span>
Pass criteria: The <span> has a name "Open" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
This pattern is shown for demonstration purposes only and is not recommended in production without additional work.
<div role="dialog" aria-label="Settings">
</div>
Pass criteria: The <div> has a name "Settings" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
<button>
<span aria-label="Close"></span>
</button>
Pass criteria: The <button> has a name "Close" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
This pattern is shown for demonstration purposes only and is not recommended in production.
<span aria-label="Contact">
</span>
Pass criteria: The <button> has a name "Contact" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
This pattern is shown for demonstration purposes only and is not recommended in production without additional work.
<div tabindex="0" aria-label="Card">
</div>
Pass criteria: The <div> has a name "Card" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
This pattern is shown for demonstration purposes only and is not recommended in production.
<span role="presentation" aria-label="Help">
</span>
Pass criteria: The <span> has a name "Help" is presented in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |
This pattern is shown for demonstration purposes only and is not recommended in production.
<span aria-hidden="true" aria-label="Delete">
</span>
Pass criteria: The element should have no name in the accessibility tree.
| OS | Browser | Result |
|---|---|---|
| MacOS | Chrome | Pass |
| MacOS | FireFox | Pass |
| MacOS | Safari | Pass |
| Windows | Chrome | Pass |
| Windows | FireFox | Pass |