ARIA Widget Roles
ARIA role: radio
A checkable option in a mutually exclusive set. Prefer same-name radio inputs. Custom radio requires aria-checked and a name; use group arrow and Space behavior. 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="radio"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token radio; 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
<fieldset> <legend>Size</legend> <label> <input type="radio" name="size" checked> Small </label> <label> <input type="radio" name="size"> Large </label></fieldset>