ARIA Widget Roles
ARIA role: checkbox
A checkable control with checked, unchecked or mixed state. Prefer checkbox input. Custom role requires aria-checked, accessible name and Space activation. The example demonstrates a native equivalent or preferred alternative and deliberately omits redundant ARIA. 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="checkbox"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token checkbox; use only where allowed. Omit when native semantics match. |
| aria-checked | tristate | Required for this custom role unless equivalent host semantics apply. Reports whether a checkable widget is checked, unchecked, or partially checked. Mixed applies only to roles supporting tri-state behavior; not radio or switch. Keep this in sync with the real state. Native checkbox checked and indeterminate properties are preferable where applicable. Values: true, false, mixed, undefined. |
Working Example
Example Snippethtml
<label> <input type="checkbox"> Include updates</label>