Accessibility · Junior · Question 46 of 75

What does role="button" on a div give you?

Show the answer

Correct answer: Only the announcement; focus and keys are still on you

Explanation

The role is a promise. Screen readers announce a button, so users expect it to work with Tab, Enter and Space, and you have to build all of that yourself.

Further reading

Problem with a question

Accessibility · Junior · question 46

Test yourself

Take the Accessibility · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz