Toggle buttons

GUI95

Widget index / Basic controls · Download this HTML

Ready — try the example.

States and behavior

Off/on, pressed feedback, focus, and disabled on state.

Keyboard

Space or Enter toggles the focused button.

Scope and adaptation

Keep the label stable and expose its persistent state with aria-pressed. A momentary command needs no aria-pressed.

Sources

Microsoft preliminary guide (1995), chapters 7–8 · Modern browser accessibility pattern

Original implementation; system colors are represented by CSS variables. The default 13 px system-font stack is a readable browser adaptation. The 1995 source is preliminary, not a final product specification. Test the target browser and native host before shipping.