SIA-R14Visible labels are included in accessible names

Accessibility requirements

This rule tests conformance of the following accessibility requirements:


This rule checks that widgets that can be labeled through their content also have their visible label included in their accessible name.


This rule applies to every element in the HTML namespace where the element has


  1. The visible inner text of the element either matches or is included in the accessible name of the element.


This rule makes no assumptions.

Accessibility support

This rule has no known accessibility support concerns.



This link has textual content and an accessible name that match:

<div role="link" aria-label="next page ">Next page</div>

This button has textual content which is included in its accessible name:

<button name="link" aria-label="Next Page in the list">Next Page</button>


This link has mismatching textual content and accessible name:

<div role="link" aria-label="Consent">I agree</div>

The textual content of this button is not included in its accessible name:

<button name="link" aria-label="Next Page">Next Page in the list</button>


The input role does not support name from content and so this element is inapplicable:

<input type="email" aria-label="E-mail" value="Contact" />

This link has no textual content:

<div role="link" aria-label="OK"></div>


This document includes material copied from or derived from Copyright © 2023 W3C® (MIT, ERCIM, Keio, Beihang).