aria-level attribute | ariaLevel property
Sets or retrieves the level of this element.
![]() |
Syntax
| HTML |
|---|
<element aria-level="p" ... > |
| JavaScript |
|---|
object.setAttribute("aria-level",value);var value = object.getAttribute("aria-level");
|
Property values
Type: Number
The level.
Standards information
- Accessible Rich Internet Applications (WAI-ARIA) 1.0, Section 6.6
Remarks
| Used in Roles |
|
|---|
This property indicates the level of an element within a structure. The level value is 1 or greater.
Note For cross-browser compatibility, always use the WAI-ARIA attribute syntax to access and modify ARIA properties, for example
object.setAttribute("aria-valuenow", newValue). See also
Show:
