ARIA Widget Roles
ARIA role: toolbar
A compact group of frequently used controls. Implement managed focus with arrow keys and real button actions. Static structure only; a simple group of ordinary buttons may be better. 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="toolbar"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token toolbar; use only where allowed. Omit when native semantics match. |
| aria-orientation | token | Relevant when applicable. Describes the orientation of a widget or separator. It does not change layout or arrow-key handling. Set it to match real visual and interaction orientation, considering role-specific defaults. Values: horizontal, vertical, undefined. |
Working Example
Example Snippethtml
<div role="toolbar" aria-label="Formatting"> <button tabindex="0">Bold</button> <button tabindex="-1">Italic</button></div>