ARIA States & Properties

aria-label

Provides an accessible name when appropriate visible labeling is unavailable. Prefer native labels or aria-labelledby for existing text; do not override a useful visible name with unrelated wording. Some roles prohibit author naming. Value type: string. Accepted values: accessible name text. Default or omitted behavior: none. Applicable context: roles permitting naming. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.

Formal Syntax & Structure

html syntaxhtml
aria-label="Close"

Parameters & Attributes

NameTypeDescription
aria-labelstringAccepted values: accessible name text. Default or omitted behavior: none. Context: roles permitting naming. Requiredness depends on the role.

Working Example

Example Snippethtml
<button aria-label="Close">×</button>
HTML Reference