0
0
HTMLmarkup~20 mins

Why accessibility matters in HTML - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Accessibility Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why use semantic HTML for accessibility?
Which of the following best explains why semantic HTML elements improve accessibility?
AThey provide meaning to content, helping screen readers understand the page structure.
BThey make the page load faster by reducing file size.
CThey allow the use of more colors and fonts on the page.
DThey automatically translate the page into multiple languages.
Attempts:
2 left
💡 Hint
Think about how screen readers interpret web pages.
📝 Syntax
intermediate
2:00remaining
Identify the correct ARIA attribute usage
Which option correctly uses an ARIA attribute to label a navigation landmark for screen readers?
HTML
<nav aria-label="Main navigation">
  <ul>
    <li><a href="#home">Home</a></li>
    <li><a href="#about">About</a></li>
  </ul>
</nav>
A<nav aria-role="navigation">...</nav>
B<nav aria-labelledby="Main navigation">...</nav>
C<nav aria-label="Main navigation">...</nav>
D<nav role="aria-label">...</nav>
Attempts:
2 left
💡 Hint
ARIA labels describe landmarks with a clear text string.
rendering
advanced
2:00remaining
What is the visual result of this accessible button?
Given the code below, what will the user see in the browser?
HTML
<button aria-pressed="true" style="font-size:1.2rem; padding:0.5rem 1rem;">
  <strong>Toggle</strong> Mode
</button>
AA button with bold text 'Toggle' followed by normal text 'Mode', sized slightly larger than default.
BA plain text 'Toggle Mode' with no bold or size changes.
CA button with italic text 'Toggle Mode' and default size.
DAn invisible button because aria-pressed hides it.
Attempts:
2 left
💡 Hint
Look at the HTML tags and CSS styles applied.
selector
advanced
2:00remaining
Which CSS selector targets only focused links for keyboard users?
To improve accessibility, which CSS selector applies styles only when a user navigates links using the keyboard (focus state)?
Aa:active { outline: 2px solid blue; }
Ba:focus { outline: 2px solid blue; }
Ca:hover { outline: 2px solid blue; }
Da:visited { outline: 2px solid blue; }
Attempts:
2 left
💡 Hint
Focus styles help keyboard users see where they are on the page.
layout
expert
3:00remaining
How does Flexbox improve accessibility in responsive design?
Which statement best describes how using Flexbox helps accessibility on different screen sizes?
AFlexbox forces all content into a single column regardless of screen size.
BFlexbox hides content automatically on small screens to reduce clutter.
CFlexbox disables keyboard navigation to simplify layouts.
DFlexbox allows content to reorder and resize smoothly, making it easier for all users to read on any device.
Attempts:
2 left
💡 Hint
Think about how flexible layouts adapt to screen changes.