--- name: building-accessible-interfaces description: Makes web and app UIs usable by keyboard, screen-reader, low-vision and motion-sensitive users — semantic HTML before ARIA, labelled controls, visible focus, WCAG AA contrast measured rather than eyeballed, touch targets, reduced motion, and automated axe checks plus a manual keyboard pass in CI or before every UI PR. Use when building or restyling a screen, adding a form, modal, menu or custom control, choosing colors, or reviewing a UI change. --- # Building Accessible Interfaces Accessibility failures are concentrated in a few places: custom controls built from `div`s, inputs without labels, invisible focus, low-contrast "subtle" text, and modals that trap nothing or everything. Check those first; they cover most real users' problems and most automated findings. ## Contents - Step 1 — Semantic HTML first - Step 2 — Every control has a name - Step 3 — Keyboard and focus - Step 4 — Contrast, measured - Step 5 — Motion, zoom and touch - Step 6 — Automated checks plus a manual pass - Native apps - Anti-patterns ## Step 1 — Semantic HTML first The right element gives keyboard support, focus and screen-reader semantics for free. | Need | Use | Not | |------|-----|-----| | Action | `