Skip to main content

2.1.1 Keyboard

Level A Since WCAG 2.0 How it is checked: Robot

In plain language

Every function must work with the keyboard alone: opening menus, pressing buttons, picking dates, submitting forms, closing dialogs…

Who is affected

Examples

Fails

<div class="nut" onclick="guiHoSo()">Submit application</div>   <!-- cannot be reached with Tab or activated with Enter -->

Passes

<button type="button" onclick="guiHoSo()">Submit application</button>

How to fix

How to test it yourself

What WCAG.win checks

WCAG.win checks part of this criterion automatically. The rest still needs a person.

W3C documentation: Understanding Success Criterion 2.1.1: Keyboard

Check a web page for free