Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which of these makes a site accessible to keyboard users?

  1. A Removing all focus outlines
  2. B Using semantic elements such as button and a, and preserving visible focus indicators
  3. C Using div elements with click handlers
  4. 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.

All Front end Development MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as