Which of these makes a site accessible to keyboard users?
- A Removing all focus outlines
- B Using semantic elements such as button and a, and preserving visible focus indicators
- C Using div elements with click handlers
- D Setting tabindex to -1 on all elements
Answer
Using semantic elements such as button and a, and preserving visible focus indicators
Native interactive elements are focusable and operable by keyboard with no extra work. A div with an onclick is not reachable by keyboard at all.





