Find Help for Every Part of SimplifyAccess

How to Make Your Website Keyboard Accessible – WCAG 2.1.1

Learn how to fix mouse-only controls, make website tasks operable by keyboard, and test them against WCAG 2.1.1.

Search titles, topics, and tags. Articles matching more keywords appear first.

Published
Author
SimplifyAccess Team
Updated

A visitor can tab through an appointment form and still get stuck if the calendar opens only with a mouse. Keyboard accessibility means being able to complete the task. It helps people who use a physical keyboard, a switch device that sends keystrokes, or other input tools that work through the same interface.

What does WCAG require?

Keyboard (2.1.1) is Level A in WCAG 2.0, 2.1, and 2.2. Users must be able to operate the content’s functions through a keyboard interface without precisely timing individual keystrokes. For example, a control should work without requiring two rapid presses or a key held for a particular duration.

A keyboard alternative can use a different control if it offers the same or comparable functionality. The exception applies when the function itself depends on the exact movement path, as freehand drawing does. Moving an item to a new position still needs a keyboard alternative when only its destination matters.

Common keyboard barriers

  • A styled element responds to clicks but cannot receive keyboard focus or be activated with a key.
  • A list can be reordered by dragging, with no controls for moving items up or down.
  • A scrollable panel cannot be scrolled using keys, or an embedded frame keeps users from reaching a required control.

How to improve keyboard access

Use native HTML where possible. Links with an href support navigation, and buttons support actions. For a disclosure that simply opens and closes a section, the browser can provide the interaction.

<details>
  <summary>Show appointment preparation instructions</summary>
  <p>Bring a list of your current medications.</p>
</details>

For custom controls, implement their expected keyboard behavior. For example, users commonly use arrow keys inside a tab list. If a scrollable area cannot otherwise be reached and scrolled, give it a keyboard focus target, the place where keystrokes will apply. Verify embedded content in the browsers you support.

How to test keyboard operation

Automated tools can flag some structural risks, such as a scrollable region without a keyboard focus target. Test a complete task with the pointer set aside. Use Tab and Shift+Tab to move between controls, Enter or Space to activate controls as appropriate, and arrow keys where the component expects them. Open menus and dialogs, operate embedded controls, scroll panels, and finish the task. Repeat after switching to a narrow layout and after opening content that appears only during the task.

Use the SimplifyAccess Accessibility Scanner to investigate technical findings related to keyboard interaction. In Compliance Assessment, record the manual task, page state, and step where access broke down.

Related accessibility requirements

No Keyboard Trap (2.1.2) covers leaving a component using the keyboard. Focus Visible (2.4.7) covers seeing where keyboard focus is. The guide to accessible controls explains how to expose a control’s name, role, and state.

Official reference

W3C Understanding WCAG 2.1.1: Keyboard

Continue in SimplifyAccess

Ready to Put This Guide Into Practice?

Create a SimplifyAccess account to manage connected websites, review accessibility findings, work with accessible-content workflows, configure visitor tools, and create reports from one platform.

Already have an account? Log in to continue with the website, setting, audit, content workflow, or report covered in this guide.

Available features, processing options, and editing capabilities depend on the connected website and selected plan.