What :focus should have been from the start

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

ShortIntermediateUI1 min

About this video

Explains why :focus-visible is usually a better choice than :focus for styling focus indicators, since it shows focus rings for keyboard users without cluttering mouse interactions.

What you’ll learn

  • Explain the difference between :focus and :focus-visible