Challenge - 5 Problems
Nav Element Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Purpose of the
What is the main purpose of the
Attempts:
2 left
💡 Hint
Think about what users use to move between pages on a website.
✗ Incorrect
The
📝 Syntax
intermediate2:00remaining
Correct Usage of
Which of the following HTML snippets correctly uses the
Attempts:
2 left
💡 Hint
Navigation links should be clickable and grouped in a list.
✗ Incorrect
Navigation links are best grouped inside a list (
- ) with each link inside a list item (
- ). This helps screen readers and organizes links clearly.
❓ rendering
advanced2:00remaining
Visual Result of a
What will you see in the browser when this HTML and CSS code runs?
HTML
<nav style="display:flex; gap:1rem;"><a href="#">Home</a><a href="#">Services</a><a href="#">Contact</a></nav>
Attempts:
2 left
💡 Hint
Flexbox with display:flex arranges children in a row by default.
✗ Incorrect
The
❓ accessibility
advanced1:30remaining
Improving Accessibility of a
Which attribute improves accessibility by describing the purpose of a
Attempts:
2 left
💡 Hint
Screen readers use ARIA attributes to understand page sections.
✗ Incorrect
The aria-label attribute gives a descriptive name to the navigation region, helping screen reader users understand its purpose.
❓ selector
expert2:00remaining
CSS Selector Targeting Only
Which CSS selector correctly styles only the elements that are direct children of a
Attempts:
2 left
💡 Hint
The '>' selector targets direct children only.
✗ Incorrect
The selector nav > a applies styles only to elements that are immediate children of