Accessibility · Junior · Question 21 of 75
What does :focus-visible help with?
- 1Keeping an element in the viewport while it's focused
- 2Showing the focus ring when it's useful, like keyboard use
- 3Making hidden elements visible when they get focus
Show the answer
Correct answer: Showing the focus ring when it's useful, like keyboard use
Explanation
Browsers apply it based on how focus arrived. Buttons clicked with a mouse don't get a ring, while keyboard users always see one.