ARIA Widget Roles

ARIA role: menubar

A persistently visible application-style menu bar. Implement horizontal arrow navigation, submenu interactions when present, and focus management. Static structure only. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.

Formal Syntax & Structure

html syntaxhtml
role="menubar"

Parameters & Attributes

NameTypeDescription
roletokenExplicit role token menubar; use only where allowed. Omit when native semantics match.

Working Example

Example Snippethtml
<div role="menubar" aria-label="Editor">  <div role="menuitem" tabindex="0">File</div>  <div role="menuitem" tabindex="-1">Edit</div></div>
HTML Reference