aria-level attribute | ariaLevel property
[This documentation is preliminary and is subject to change.]
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.
Remarks
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
Build date: 2/13/2012
