Favorites

ARIA menubar Role

menubar
ARIA Composite Widget RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

The menubar role marks a horizontal bar of menu items that stays visible, like the File, Edit and View bar of a desktop application.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

<ul role="menubar" aria-label="Editor" style="display:flex;gap:12px;list-style:none;padding:0">
<li role="menuitem" tabindex="0" aria-haspopup="menu" aria-expanded="false">File</li>
<li role="menuitem" tabindex="-1" aria-haspopup="menu" aria-expanded="false">Edit</li>
<li role="menuitem" tabindex="-1" aria-haspopup="menu" aria-expanded="false">View</li>
</ul>

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.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee