ARIA menubar Role
The menubar role marks a horizontal bar of menu items that stays visible, like the File, Edit and View bar of a desktop application.
Description
The menubar role is a type of menu that is usually always visible and laid out horizontally, like the File, Edit and View menus at the top of a desktop application or web app such as an online document editor. Its items usually open drop-down submenus.
The menubar is one Tab stop. Left and Right move between its items, Down (or Enter) opens an item's submenu, and inside a submenu Left and Right move to the neighboring menus. Its default orientation is horizontal.
Menu bars are for applications. A website's main navigation is not a menubar; use a <nav> element with links.
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="menubar">
Example
Browser Support
The following information will show you the current browser support for the menubar ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





