Loading exercise...

Exercise: Make the Rehearsals Page Keyboard Ready

In this exercise, you’ll make the choir’s Rehearsals page ready for the keyboard.

How Coding Exercises Work

A coding exercise runs right here in your browser. The editor above holds one file, here the Rehearsals page with its styles in a <style> element. Change the file, then click Run Tests or press Ctrl+Enter (Cmd+Enter on macOS). Automated tests read your HTML and CSS and mark each test as passed or failed.

The editor doesn’t show the page, and the tests can’t press keys. They check what the keyboard depends on: which elements are stops for Tab, where a link sends focus, and which styles apply at each screen width. The keyboard walk stays yours, in your copy of the site and its live preview.

Run the tests early and often, even before you change anything. A failing test’s message tells you what it found and what it expected, so read it before you edit. Fix the first failing test, then run the tests again. A different failing test usually means you made progress!

Getting stuck is normal. The Hints tab nudges you one step at a time, so see whether one hint is enough to get you going. Thinking it through yourself is where most of the learning happens. You can also ask your mentor about the exercise and your code at any time.

Tests marked Bonus are extra challenges. You’ve solved the exercise once the other tests pass.

For more room, click Full screen or press T while you’re not typing in the editor. When you’re done, open the Solution tab to compare your approach and read the notes.

Become a Member to join the conversation.