Accessibility · Senior · Question 2 of 75
Which of these roles gets its name from its content?
- 1
textbox, whilebuttonneeds a label from elsewhere - 2
button, whiletextboxneeds a label from elsewhere - 3Neither, because only
aria-labelcan provide a name
Show the answer
Correct answer: button, while textbox needs a label from elsewhere
Explanation
Roles such as button and link allow name from content. A textbox can't, because its content is the user's value.