ARIA States & Properties
aria-level
Specifies the hierarchical level of a heading, tree item, or other supported structure. For custom headings it is required; prefer native h1–h6. Do not derive levels from visual size; maintain logical hierarchy. Value type: integer. Accepted values: positive integer. Default or omitted behavior: role dependent. Applicable context: heading, treeitem, listitem, row where supported. 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-level="2"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-level | integer | Accepted values: positive integer. Default or omitted behavior: role dependent. Context: heading, treeitem, listitem, row where supported. Requiredness depends on the role. |
Working Example
Example Snippethtml
<div role="heading" aria-level="2">Delivery options</div>