Bird
0
0

Given this HTML snippet:

medium📝 Predict Output Q4 of 15
Testing Fundamentals - Non-Functional Testing
Given this HTML snippet:
<button aria-label='Close menu'></button>

What will a screen reader announce when focusing on this button?
AMenu
BButton
CNo description
DClose menu
Step-by-Step Solution
Solution:
  1. Step 1: Understand aria-label effect on screen readers

    The aria-label attribute overrides visible text and provides a description for screen readers.
  2. Step 2: Apply to given button

    The button has aria-label='Close menu', so screen readers announce "Close menu".
  3. Final Answer:

    Close menu -> Option D
  4. Quick Check:

    aria-label text = screen reader announcement [OK]
Quick Trick: aria-label text is read aloud by screen readers [OK]
Common Mistakes:
  • Assuming screen reader reads only visible text
  • Ignoring aria-label overrides
  • Thinking button announces generic 'Button'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes