Use the Page With the Keyboard Alone

Rosa’s sign-up form now checks what volunteers type and matches the rest of the garden’s site. Before she shares the link, she wants to know whether every visitor can use the form and the rest of the site.

In this lesson, you’ll check the whole site the way many visitors use it, with the keyboard alone. You’ll use the HTML to predict where each press of Tab moves focus, confirm the order in the browser, and identify who gets stuck when the order is wrong.

Know Who the Check Is For

You check a page with your own eyes, screen, and mouse. That’s the same blind spot as testing a program only on your own machine. Accessibility means building pages that people can use regardless of their bodies, senses, or devices.

That covers blind visitors whose screen reader reads the page aloud, low-vision visitors who zoom to 200 percent, and people whose tremor rules out a mouse. It also covers people who get dizzy from motion or can’t tell red from green, and anyone on a bad day, with a broken wrist, a dead trackpad, or a baby on one arm.

The elements you’ve used all along already do most of the work. A <label> names its field, a <button> takes focus and works from the keyboard, and the browser passes this on to screen readers for free.

The keyboard is the first check because it needs no tools. Screen reader users and people using switch devices, which turn actions such as button presses into computer input, step through the page the same way, so what fails with the keyboard can block all of them.

Tab Through the Garden Site

Focus determines which element receives what you type. The Tab key moves focus forward to the next element that can take it, Shift+Tab moves it back, and Enter follows a focused link.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.