Section 2.5: Input Modalities
This section of WCAG 2.1 ensures users can interact with content using various input methods, such as keyboards, touchscreens, and voice commands, while maintaining accessibility for assistive technologies.
2.5.1 Pointer Gestures
For functionality requiring complex pointer gestures (like swiping or pinching), provide alternatives that work with simple gestures or single pointer actions.
- Example: Below is a gallery that can be navigated using simple taps or clicks:

2.5.2 Pointer Cancellation
Ensure users can cancel accidental pointer actions (like dragging or clicking) before they are completed.
- Example: Below is a draggable box that allows cancellation:
Drag me!
2.5.3 Label in Name
Ensure that labels for interactive elements match their accessible names (for screen readers and voice controls).
- Example: Below is a button labeled visibly and accessibly:
2.5.4 Motion Actuation
For features activated by motion (like shaking or tilting a device), provide alternatives for users who cannot perform those actions.
- Example: A shaking gesture activates this feature, but a button provides an alternative: