• Success Criterion 2.1.1
  • Conformance level A

Clickable Div With No Keyboard Focus or Key Handling at All

2.1.1 — Keyboard

Scenario

Setting

A telehealth app's video-visit waiting room

What’s wrong

Clickable div/span/icon with click handler, no tabindex="0" (code making it keyboard-focusable), no key handling.

Example

<div onclick="submitForm()">Submit</div>

Why it matters

Blind users, people with motor disabilities, and anyone operating the interface without a pointer.

How to test

Tab to a clickable div/span: if it has no tabindex="0" and no keydown handler, keyboard focus skips over it entirely.

How to fix

Use a native button/link, or add tabindex="0" (code making it keyboard-focusable) plus Enter/Space key handling.

<button onclick="submitForm()">Submit</button>

A native button is focusable and triggers on Enter/Space automatically; a div needs all of that added by hand.

Outcome

On a telehealth app's video-visit waiting room, this barrier is gone for blind users, people with motor disabilities — they reach the same outcome without extra effort.

Who is affected

Blind users, people with motor disabilities, and anyone operating the interface without a pointer.

Learn more