ARIA Widget Roles

ARIA role: checkbox

Build a form with the HTML form generator

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

NameTypeDescription
roletokenExplicit role token checkbox; use only where allowed. Omit when native semantics match.
aria-checkedtristateRequired 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>
HTML Reference