0
0
Testing Fundamentalstesting~20 mins

Accessibility testing in Testing Fundamentals - Practice Problems & Coding Challenges

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 ARIA roles in web pages?
What is the main purpose of adding ARIA roles to HTML elements?
ATo make elements load faster in the browser
BTo improve the visual style of elements using CSS
CTo help assistive technologies understand the purpose of elements
DTo add animations and transitions to elements
Attempts:
2 left
💡 Hint
Think about users who rely on screen readers.
📝 Syntax
intermediate
2:00remaining
Identify the correct ARIA attribute syntax
Which option shows the correct way to add an ARIA label to a button in HTML?
A<button ariaLabel='Close menu'>X</button>
B<button aria_label='Close menu'>X</button>
C<button aria label='Close menu'>X</button>
D<button aria-label='Close menu'>X</button>
Attempts:
2 left
💡 Hint
ARIA attributes use hyphens and lowercase letters.
rendering
advanced
2:00remaining
Screen reader behavior with missing alt text
What will a screen reader announce for this image?

<img src='logo.png'>
Testing Fundamentals
<img src='logo.png'>
AIt will read the file name 'logo.png' aloud
BIt will skip the image and say nothing
CIt will announce 'image' without description
DIt will cause an error and stop reading
Attempts:
2 left
💡 Hint
Screen readers fall back to the filename when alt is missing.
selector
advanced
2:00remaining
CSS selector for keyboard focus style
Which CSS selector correctly targets elements when they receive keyboard focus for accessibility styling?
A:focus-visible
B:hover
C:active
D:visited
Attempts:
2 left
💡 Hint
This selector only shows focus styles when keyboard is used.
layout
expert
3:00remaining
Ensuring logical tab order in complex layouts
You have a complex page with multiple sections and interactive elements. Which practice ensures the tab order is logical and accessible?
AUse tabindex='0' for natural order and avoid positive tabindex values
BUse tabindex='0' to include elements in natural DOM order and tabindex='positive' to reorder
CRemove all tabindex attributes to disable keyboard navigation
DUse tabindex='-1' on all interactive elements
Attempts:
2 left
💡 Hint
Positive tabindex values can confuse users.