Accessibility · Junior · Question 55 of 75

Which keys should activate a native-like button?

Show the answer

Correct answer: Both Enter and Space

Explanation

Links activate with Enter only, buttons with both. A <button> does this for you, but a custom one must handle both keys.

Further reading

Problem with a question

Accessibility · Junior · question 55

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