Accessibility · Junior · Question 55 of 75
Which keys should activate a native-like button?
- 1Only the Enter key
- 2Only the Space key
- 3Both Enter and Space
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.