Case File: The Button That Did Nothing
A counter for the shop floor looks right and does nothing: the buttons are styled divs with no code behind them. Make it work in the way that works for everybody: real buttons, click listeners that change the number, a count that never goes below zero, and a live region that a screen reader announces. The lab clicks your buttons in order and reads the real page. The counter and its step are generated for you alone.
Case File: The Button That Did Nothing
A counter for the shop floor looks right and does nothing: the buttons are styled divs with no code behind them. Make it work in the way that works for everybody: real buttons, click listeners that change the number, a count that never goes below zero, and a live region that a screen reader announces. The lab clicks your buttons in order and reads the real page. The counter and its step are generated for you alone.
In this lesson:
- javascript
- dom
- events
- buttons
- aria-live
- state
- 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