Skip to content

Keyboard Only

You'll put the mouse in a drawer and make every link and control on your site reachable with Tab and Enter, then test it with a real screen reader.

About

Plenty of people use the web without a mouse, including screen reader users, people with motor impairments and power users who just prefer it. If you can't reach every link and control on your site with Tab and Enter, it's broken for all of them. You'll fix the focus states, add a skip link, get the heading order right, and then test with a real screen reader rather than a checker, because the checker can't tell you what it's like.

At a glance

Per requirement
35 XP
Completion bonus
300 XP
Requirements
6
Takes
Three weeks
Skill level
Intermediate (months of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
On your own
Locked for now
Earn two more Uncommon badges in Web Building to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Tab through every page of your site and log what you can't reach. Unplug the mouse or put it in a drawer, then get around with Tab, Shift-Tab, Enter, Space and the arrow keys. Note anything you can't get to, and any moment where you can't see where you are. Take a screenshot of the log. Photo
  2. 2
    Make focus visible everywhere. Never use outline: none without putting something in its place. Use :focus-visible with a 2px solid outline in your accent color and a small offset. Take a screenshot of a focused link and a focused button. Photo
  3. 3
    Add a skip link to the main content. Make it the first focusable thing on every page, reading Skip to content, visually hidden until it gets focus, and pointing at #main. Film yourself pressing Tab once and seeing it appear. Video
  4. 4
    Fix the heading order and add landmarks. Use one h1 per page with no skipped levels. Use header, nav, main and footer elements so screen readers can jump by landmark. Take a screenshot of the headings outline from a tool like HeadingsMap. Photo
  5. 5
    Make any custom control work from the keyboard. That could be a menu toggle, a modal or a tabs widget. Native button and details elements get keyboard support for free, so use them wherever you can. Film yourself operating the control with keys only. Video
  6. 6
    Use a screen reader to complete one task on your site. Find a specific post and then send a message through your form, using VoiceOver, NVDA or TalkBack, with your eyes closed or the screen off. Film the whole task with the audio on. Video