Skip Links vs Landmarks
You'll learn: When to use skip links versus relying on landmark regions to create the best keyboard navigation experience.
Understanding the Two Approaches
Now that you've learned both skip links and landmarks, you might wonder: which should you use? The answer is both—they serve complementary purposes.
Skip links are visible (or become visible on focus) links at the top of your page that let keyboard users immediately jump past repetitive content. Think of them as express elevators to specific floors of a building.
Landmarks (like <nav>, <main>, <aside>) create a structural map of your page that screen reader users can navigate through with keyboard shortcuts. They're like labeled sections on a building directory.
When Each Shines
Use skip links when:
- You have repetitive navigation that appears before main content
- Keyboard-only users (not just screen reader users) need quick access
- You want to provide a visible, discoverable navigation shortcut
- Your site has complex headers with multiple menus or search forms
Rely on landmarks when:
- You're structuring your overall page semantically
- Screen reader users need to understand page regions
- You want consistent navigation patterns across your site
- You're organizing content into logical, reusable sections
The Best Practice Approach
Don't treat this as either/or. A well-structured accessible site includes:
- At least one skip link ("Skip to main content") for keyboard users
- Proper landmark regions (
<header>,<nav>,<main>,<footer>) for screen reader navigation - Labeled landmarks when you have multiple of the same type
Skip links provide immediate, visible shortcuts. Landmarks provide structural understanding. Together, they accommodate different assistive technologies and user preferences.
Key Takeaway: Use skip links to provide fast, visible shortcuts for keyboard users, and use landmarks to create semantic page structure for screen readers—they work best together, not as alternatives.