You are doing :focus wrong (and I was too)

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI13 min

About this video

Explains why the :focus state matters in CSS and how to style it so keyboard users can navigate a page easily. Aimed at developers and designers who already write some CSS.

What you’ll learn

  • Explain why visible focus states matter for keyboard navigation
  • Style :focus differently from :hover in CSS
  • Apply focus styles that stay visible for keyboard users