Bird
0
0

Consider this HTML snippet:

medium📝 Predict Output Q13 of 15
Testing Fundamentals - Non-Functional Testing
Consider this HTML snippet:
<button>Click me</button>

Which accessibility improvement is best?
ARemove the button element
BAdd <code>aria-label="Submit button"</code> to the button
CChange button text to <code>""</code> (empty string)
DAdd <code>style="color: white;"</code> only
Step-by-Step Solution
Solution:
  1. Step 1: Understand button accessibility

    Buttons need clear labels for screen readers; adding aria-label clarifies purpose.
  2. Step 2: Evaluate other options

    Empty text or removing button removes meaning; styling alone doesn't improve accessibility.
  3. Final Answer:

    Add aria-label="Submit button" to the button -> Option B
  4. Quick Check:

    Use aria-label for clear button description [OK]
Quick Trick: Use aria-label to describe buttons clearly [OK]
Common Mistakes:
  • Leaving buttons unlabeled
  • Removing interactive elements
  • Relying only on visual styles

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes