Accessibility · Middle · Question 37 of 75
What is the difference between disabled and aria-disabled="true"?
- 1
disabledis only for links;aria-disabledis only for inputs - 2They are identical, and browsers treat them in exactly the same way
- 3
aria-disabledkeeps focus and clicks; you must block the action
Show the answer
Correct answer: aria-disabled keeps focus and clicks; you must block the action
Explanation
A disabled button leaves the Tab order, so users can't discover it. aria-disabled lets them reach it and hear why it's unavailable.