Web Accessibility Initiative
W3C's initiative supporting web accessibility through standards, guidance, education, and resources.
A practical guide to WAI, WCAG 2.2, accessible application architecture, semantic interfaces, inclusive workflows, and engineering verification.
“Build accessibility into the Castle's foundation.”— Kouider Bakhti · Engineering Philosophy
A feature is not complete simply because it looks polished or works with a mouse. Good engineering considers people who navigate by keyboard, use screen readers or magnification, require clear language, or experience limitations in vision, hearing, movement, or cognition.
Engineering position: Accessibility belongs in requirements, architecture, design, implementation, verification, and maintenance. This page is a technical learning and implementation resource—not a certification claim or an audit of previously delivered applications.
Explore: StandardsPOURPhilosophyCode patternsScenariosVerificationSDLC
W3C's initiative supporting web accessibility through standards, guidance, education, and resources.
Testable success criteria organized under four principles, with conformance levels A, AA, and AAA.
Roles, states, and properties that help communicate complex UI semantics to assistive technologies when native HTML alone is insufficient.
This guide uses WCAG 2.2 Level AA as an engineering reference target. Actual conformance requires evaluation against all applicable success criteria for the relevant content and complete processes.
Users can perceive content through available senses and assistive technology. Examples: text alternatives, captions, readable contrast, and content that can be resized.
People can navigate and activate functionality. Examples: keyboard access, visible focus, no keyboard traps, and sufficient time when time limits apply.
Information and interactions are predictable and clear. Examples: descriptive labels, helpful validation messages, and consistent navigation.
Content can be interpreted by supported browsers and assistive technologies. Examples: meaningful HTML structure and correct accessible names, roles, and values.
Security and accessibility share a central engineering lesson: correcting foundational design mistakes late in delivery can be expensive. The better approach is to include both as design constraints from the beginning.
Start with user tasks, including non-mouse navigation and assistive-technology use.
Use standard HTML controls before introducing custom widgets or ARIA.
Automated scanning supports accessibility testing but cannot replace human review.
Companion philosophy: “Build security before the Castle.”
Engineering workflow: Requirements → Architecture → Design → Implementation → Testing → Verification → Maintenance.
Each pattern follows a practical sequence: problem → accessible implementation → verification. Examples are illustrative; production features require additional application-specific testing.
Use native form controls and explicit labels. Associate instructions and errors programmatically. Validate on the server as well as the client.
<label for="email">Email address</label>
<p id="email-help">We'll send confirmation here.</p>
<input id="email" name="email" type="email"
autocomplete="email" required
aria-describedby="email-help">
<button type="submit">Request appointment</button>Verify: Navigate with Tab, inspect the accessible name, submit an empty form, and check that errors are announced and actionable. When an error exists, connect it using aria-describedby and set aria-invalid="true" as appropriate.
Use <button> for actions and <a href> for navigation. They provide established keyboard and assistive-technology behavior.
<!-- Avoid: non-semantic clickable element -->
<div onclick="save()">Save</div>
<!-- Prefer: native interactive element -->
<button type="button" onclick="save()">Save</button>Verify: The action is reachable by Tab and activates with Enter or Space.
When a background action updates the interface, communicate the result without forcing the user to hunt for it.
<button type="button" id="save">Save changes</button>
<p id="save-status" role="status"></p>
<script>
document.getElementById('save').addEventListener('click', () => {
// After the application confirms a successful save:
document.getElementById('save-status').textContent =
'Changes saved successfully.';
});
</script>Verify: The message is announced by a screen reader when it changes. In real applications, update the status only after the server confirms success.
Dialogs require careful focus handling: move focus into the dialog when opened, contain focus while modal, close using appropriate controls, and return focus sensibly. For React route changes, ensure the new page title and focus context are communicated.
Implementation approach: Prefer well-tested accessible component primitives or the native <dialog> element when appropriate. Do not build a modal from a styled <div> alone.
Verify: Open, navigate, and close without a mouse; test with a screen reader.
For WCAG AA, typical minimum contrast is 4.5:1 for normal text and 3:1 for large text, subject to specified exceptions. Check relevant non-text contrast as well. Test zoom and reflow; respect reduced-motion preferences for nonessential animation.
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.decorative-animation { animation: none; }
}Verify: Use a contrast checker, zoom the browser, resize the viewport, and enable reduced motion at the operating-system level.
These scenarios draw on familiar business-software workflows. They illustrate how accessibility could be specified and tested; they do not assert that historical applications were formally audited.
| Workflow | Accessibility risk | Engineering response |
|---|---|---|
| Online booking | Calendar and time controls require mouse use | Keyboard-operable date/time selection; descriptive instructions and confirmation |
| Staff booking administration | Confirm/decline actions are unclear | Named action buttons, predictable focus, announced status changes |
| Client intake | Unlabeled fields or unclear errors | Semantic field groups, labels, actionable errors, accessible validation |
| Client search / CRM | Dynamic results not communicated | Accessible search labels, result counts, meaningful table headings |
| Appointment reminders | Unclear success or failure messages | Accessible status feedback, error recovery, non-color-only indicators |
| React dashboards | Dialogs, menus, and route changes disrupt focus | Focus management, semantic landmarks, tested interaction patterns |
Automated tools detect some issues, but cannot determine whether the full user experience is understandable and operable. Combine automation, manual keyboard testing, screen-reader testing, and review of complete user journeys.
axe-core, Lighthouse, Accessibility Insights. Catch detectable issues early and include suitable checks in CI.
Tab, Shift+Tab, Enter, Space, Escape, focus order, focus visibility, and keyboard traps.
Test critical journeys with screen readers such as NVDA and VoiceOver, using appropriate browsers.
Checklist state is temporary and is not stored or submitted. Checking a box does not establish WCAG conformance.
Definition of done: A feature should satisfy its documented accessibility acceptance criteria before being considered complete. Formal conformance claims require a separate, thorough evaluation.
Filterable quick reference for success criteria and techniques.
Patterns, examples, and keyboard interaction guidance for complex widgets.
Guidance on labels, grouping, instructions, and validation.