Bird
Raised Fist0

What is the expected behavior when a form input has the attribute aria-required='true'?

medium📝 Predict Output Q5 of Q15
Testing Fundamentals - Non-Functional Testing
What is the expected behavior when a form input has the attribute aria-required='true'?
AThe input automatically validates user input
BThe input becomes disabled
CScreen readers announce the field as required
DThe input is hidden from screen readers
Step-by-Step Solution
Solution:
  1. Step 1: Understand aria-required attribute

    aria-required='true' tells assistive technologies that the field must be filled out.
  2. Step 2: Check other options

    It does not disable input, validate automatically, or hide it from screen readers.
  3. Final Answer:

    Screen readers announce the field as required -> Option C
  4. Quick Check:

    aria-required true = field announced as required [OK]
Quick Trick: aria-required='true' marks fields as required for screen readers [OK]
Common Mistakes:
MISTAKES
  • Thinking aria-required disables input
  • Assuming it triggers validation automatically
  • Confusing aria-required with hiding elements

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes