ARIA listitem Role
The listitem role marks a single item in a list. The li element has this role, and it must be inside a list.
Description
The listitem role identifies a single item in a list. It must be contained in, or owned by, an element with the list role. The <li> element has this role when it is inside a <ul>, <ol> or <menu>.
When only part of a long list is in the DOM, use aria-posinset and aria-setsize to give each item's position. Nested lists go inside a list item, and aria-level can express the depth.
Use the native HTML <li> element where you can: it already has the listitem role, with the expected keyboard and browser behavior built in.
Properties
ARIA Attributes
- Required
- None
- Supported
aria-level,aria-posinset,aria-setsize- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="listitem">
Example
Browser Support
The following information will show you the current browser support for the listitem ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





