Bird
0
0

Which HTML element attribute is essential for screen readers to describe the purpose of a button?

easy📝 Conceptual Q2 of 15
Testing Fundamentals - Non-Functional Testing
Which HTML element attribute is essential for screen readers to describe the purpose of a button?
Aclass
Baria-label
Cstyle
Did
Step-by-Step Solution
Solution:
  1. Step 1: Identify attribute for screen reader description

    The aria-label attribute provides a text label for screen readers to describe elements like buttons.
  2. Step 2: Eliminate unrelated attributes

    Class and id are for styling and scripting, style controls appearance, none describe purpose for screen readers.
  3. Final Answer:

    aria-label -> Option B
  4. Quick Check:

    Screen reader label attribute = aria-label [OK]
Quick Trick: Use aria-label to describe elements for screen readers [OK]
Common Mistakes:
  • Using class or id for accessibility labels
  • Confusing style attribute with accessibility
  • Not providing any label for interactive elements

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes