Case File: Tabs That Everybody Can Use
The shop's information box shows one panel at a time and does not work without a mouse: the tabs are divs, a keyboard cannot reach them, and a screen reader has no idea what is open. Make it a proper tab widget: the right roles and states, linked tabs and panels, one tab in the tab order, and the arrow, Home and End keys, with wrap-around. The lab presses real keys on your page and reads the result. The tabs are generated for you alone.
Case File: Tabs That Everybody Can Use
The shop's information box shows one panel at a time and does not work without a mouse: the tabs are divs, a keyboard cannot reach them, and a screen reader has no idea what is open. Make it a proper tab widget: the right roles and states, linked tabs and panels, one tab in the tab order, and the arrow, Home and End keys, with wrap-around. The lab presses real keys on your page and reads the result. The tabs are generated for you alone.
In this lesson:
- javascript
- accessibility
- aria
- keyboard
- tabs
- roving tabindex
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans