Skip to content
Level A Operable

WCAG 2.1.1: Keyboard

All functionality must be operable through a keyboard interface without requiring specific timing for individual keystrokes. This is essential for users who cannot use a mouse, including screen reader users, motor-impaired users, and power users.

What is WCAG 2.1.1 Keyboard?

WCAG 2.1.1 Keyboard is a Level A web accessibility success criterion under the Operable principle. All functionality must be operable through a keyboard interface without requiring specific timing for individual keystrokes. This is essential for users who cannot use a mouse, including screen reader users, motor-impaired users, and power users. Common failures include click handlers on div/span elements without keyboard event handlers and custom dropdown menus that only open on mouse hover. Meeting this criterion is essential for accessible, inclusive web design.

How to Test

  1. Tab through the entire page and verify all interactive elements are reachable
  2. Test that all buttons, links, and form controls can be activated with Enter or Space
  3. Verify custom widgets (dropdowns, modals, tabs) work with keyboard
  4. Check that drag-and-drop functionality has a keyboard alternative
  5. Test that keyboard shortcuts do not conflict with screen reader commands

Common Failures

Good Example

<!-- Proper button element -->
<button onclick="handleSave()">Save</button>

<!-- Custom interactive element with keyboard support -->
<div role="button" tabindex="0"
  onclick="handleAction()"
  onkeydown="if(event.key==='Enter'||event.key===' ')handleAction()">
  Custom Action
</div>

The native button element is keyboard-accessible by default. The custom div uses role='button', tabindex='0', and keydown handler for Enter and Space keys.

Bad Example

<!-- Div with only click handler -->
<div onclick="handleAction()" style="cursor: pointer;">
  Click me
</div>

<!-- Hover-only dropdown -->
<div class="dropdown" onmouseover="showMenu()">
  Menu
</div>

The clickable div cannot be focused or activated via keyboard. The dropdown only opens on mouse hover with no keyboard interaction.

Test Your Site for 2.1.1 Compliance

Use our free accessibility tools to check your website against WCAG 2.1.1.

Open Testing Tool

Related Success Criteria

A
2.1.2 No Keyboard Trap Operable
AA
2.4.7 Focus Visible Operable
A
4.1.2 Name, Role, Value Robust

Related Reading

WCAG 2.2 Changes Summary → How to Check Website Accessibility for Free → WCAG Color Contrast Requirements Explained →