ARIA menu Role
The menu role marks a widget offering a list of actions or choices, like an application's context menu or a drop-down from a menu button.
Description
The menu role identifies a widget that offers the user a list of choices or commands, like the menus in a desktop application. A menu is usually opened from a menu button (with aria-haspopup="menu" and aria-expanded) or appears as a context menu. Its items have the menuitem, menuitemcheckbox or menuitemradio role.
When the menu opens, focus moves to the first item. Up and Down move between items, Enter activates one, Escape closes the menu and returns focus to the button, and Tab closes it and moves on. Screen readers switch to an application-like mode, so users can't read other content inside the menu.
Despite the name, the HTML <menu> element is just a list with no menu behavior. And a site's navigation menu, made of links, should not use this role: a <nav> with a list of links, or a disclosure button that shows them, is what users expect.
Properties
- Category
- Composite Widget
- HTML equivalent
- None
- Accessible name from
- author
- Required parent role
- None
- Required child roles
group,menuitem,menuitemcheckbox,menuitemradio
ARIA Attributes
- Required
- None
- Supported
aria-activedescendant,aria-orientation- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="menu">
Example
Browser Support
The following information will show you the current browser support for the menu ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





