Challenge - 5 Problems
Semantic Accessibility Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Why use semantic elements for screen readers?
Which of the following best explains why semantic HTML elements help screen readers?
Attempts:
2 left
💡 Hint
Think about how screen readers understand page layout and content.
✗ Incorrect
Semantic elements like <nav>, <main>, and <header> give screen readers clues about the page structure. This helps users navigate and understand the content better.
📝 Syntax
intermediate2:00remaining
Identify the semantic element for main content
Which HTML element is best to wrap the main content of a page for screen readers?
Attempts:
2 left
💡 Hint
This element is specifically designed to hold the main content unique to the page.
✗ Incorrect
The <main> element is used to wrap the main content of a page. Screen readers can jump directly to this section, improving navigation.
❓ rendering
advanced2:00remaining
Screen reader behavior with landmarks
Given this HTML snippet, what will a screen reader announce when focusing on the
<nav> element?HTML
<nav aria-label="Primary navigation"> <ul> <li><a href="#home">Home</a></li> <li><a href="#about">About</a></li> </ul> </nav>
Attempts:
2 left
💡 Hint
Screen readers announce landmarks and their labels to help users understand page sections.
✗ Incorrect
The <nav> element is a landmark region. The aria-label gives it a name. Screen readers announce both the landmark type and label, plus the list details.
❓ selector
advanced2:00remaining
CSS selector for focus style on semantic landmarks
Which CSS selector correctly applies a visible focus outline to all semantic landmark elements when they receive keyboard focus?
Attempts:
2 left
💡 Hint
Focus styles appear when elements receive keyboard focus, not on hover or active states.
✗ Incorrect
The :focus pseudo-class targets elements when they receive keyboard focus. This helps keyboard users see which element is active.
❓ accessibility
expert2:00remaining
Screen reader announcement with incorrect semantic use
What error will a screen reader encounter when a page uses multiple
<main> elements?Attempts:
2 left
💡 Hint
The
<main> element should be unique per page for clear navigation.✗ Incorrect
Using multiple <main> elements creates multiple main landmarks. Screen readers announce each, which can confuse users about the page's primary content.