WCAG 2.1.3: Keyboard (No Exception)
WCAG 2.1 Success Criterion 2.1.3, titled „Keyboard (No Exception),” is a Level A guideline that mandates all functionality of web content to be operable through a keyboard interface without requiring specific timings for individual keystrokes. This criterion is an enhanced version of WCAG 2.1.1 Keyboard, removing the exceptions present in the earlier criterion.
The core principle is simple yet profound: if a user can interact with an element or perform an action using a mouse, they must also be able to do so using only a keyboard. This ensures that users who cannot use a pointing device (like a mouse) are not excluded from accessing or using any part of the web content.
Understanding Success Criterion 2.1.3: Keyboard (No Exception)
This criterion directly addresses a fundamental aspect of digital accessibility: universal input method support. It states that every single piece of functionality on a webpage or application must be accessible and operable via a standard keyboard.
Unlike WCAG 2.1.1, which includes an exception for functions requiring input dependent on the path of user motion (e.g., freehand drawing, specific drag-and-drop interactions where the path matters), WCAG 2.1.3 has no such exceptions for its scope. This means if an operation can be performed by keyboard, it must be.
For example, if a custom slider allows a user to drag a handle to select a value, WCAG 2.1.1 might allow for a mouse-only interaction if the path of motion was critical. However, WCAG 2.1.3 implies that a keyboard alternative (e.g., arrow keys to increment/decrement the value) must be provided, as the endpoint or final value is the critical aspect, not the specific path taken by the mouse.
Why This Criterion Matters
Keyboard accessibility is one of the most foundational requirements for an inclusive web. Without it, many users are completely blocked from interacting with content.
Accessibility Impact
User Groups Benefiting
Official Requirements from WCAG 2.1
The exact wording for Success Criterion 2.1.3 is:
2.1.3 Keyboard (No Exception): All functionality of the content is operable through a keyboard interface without requiring specific timings for individual keystrokes.
This success criterion is at Level A, meaning it is considered essential for most users to be able to access the content.
Key Interpretations and Requirements:
How to Meet Success Criterion 2.1.3
General Guidelines
Practical Implementation Examples
Correct Implementation: Keyboard-Operable Custom Button
Using a native button is always preferred, but if a custom element is necessary, ensure it has tabindex="0" and appropriate event handlers.
Incorrect Implementation: Mouse-Only Custom Button
A common pitfall is to create custom interactive elements that only respond to mouse clicks, neglecting keyboard input.
Issue: The .mouse-only-button cannot receive keyboard focus (missing tabindex="0") and therefore cannot be activated by keyboard users.
Best Practices and Common Pitfalls
Best Practices
Common Pitfalls
Testing for Compliance
Testing for WCAG 2.1.3 compliance is primarily a manual process, though automated tools can catch some obvious issues like missing `tabindex` attributes on custom interactive elements.
Related WCAG Guidelines
Conclusion
WCAG 2.1 Success Criterion 2.1.3 „Keyboard (No Exception)” is a crucial guideline for creating inclusive web experiences. By ensuring that all functionality is accessible via the keyboard, developers and content creators can significantly broaden their audience, allowing individuals with diverse abilities to interact with and benefit from their digital content. Adhering to this criterion not only meets a fundamental accessibility requirement but also often improves the overall usability and robustness of web applications.
Related posts
- WCAG 5.2.3: Complete processes
- WCAG 5.2.4: Only Accessibility-Supported Ways of Using Technologies
- WCAG 5.2.5: Non-Interference
- WCAG 5.3.1: Required elements of the conformity declaration
- WCAG 5.3.2: Optional Components of a Conformance Claim
Still looking for answers?
Ask our experts using online chat