← All Exercises
Add a Skip Link and Labelled Landmarks
basichtml
Background
Keyboard and screen reader users need a fast path past repeated navigation; skip links and landmarks are the baseline pattern.
Problem
Create an HTML page shell whose first focusable control is a skip link pointing to a focusable main element, with a labelled primary navigation and complete banner, main, and contentinfo landmarks.
Input
A page template with repeated site navigation at the top.
Output
Semantic HTML with a skip link, labels, and landmarks.
Sample tests
Sample 1
Input: Keyboard user presses Tab on page load
Expected: The skip link receives focus first, becomes visible, and targets main#main-content
Sample 2
Input: Screen reader opens the landmark list
Expected: banner, navigation with aria-label=Primary, main, and contentinfo landmarks are exposed
Your solution
Learning objective
Use skip links, focus management, and landmark elements so keyboard and screen reader users can bypass repeated navigation.