ARIA menuitem Role
The menuitem role marks an option in a menu or menu bar that performs an action or opens a submenu.
Description
The menuitem role identifies an option in a menu or menu bar, such as "Copy" or "Save as" in an application menu. It must be inside an element with the menu or menubar role, or a group within one.
Menu items follow the menu keyboard pattern: the arrow keys move between items, Enter activates the item, Escape closes the menu, and typing a letter moves to the next item starting with it. Usually only the focused item is in the Tab order. An item that opens a submenu uses aria-haspopup="menu" and aria-expanded.
Screen readers switch to a special mode inside menus, so only use these roles for application-style menus. A list of navigation links should stay a list of links.
Properties
ARIA Attributes
- Required
- None
- Supported
aria-disabled,aria-expanded,aria-haspopup,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="menuitem">
Example
Browser Support
The following information will show you the current browser support for the menuitem ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





