ARIA Widget Roles
ARIA role: menuitem
A command inside a menu or menubar. Needs menu or menubar context, a name and command activation. 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="menuitem"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token menuitem; use only where allowed. Omit when native semantics match. |
Working Example
Example Snippethtml
<div role="menu" aria-label="Actions"> <div role="menuitem" tabindex="0">Save</div></div>