CSS’s :target pseudo-class is surprisingly powerful

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

ShortIntermediateWeb DesignUI1 min

About this video

A Short showing how the CSS :target pseudo-class styles an element that an anchor link points to.

What you’ll learn

  • Style an element when an anchor link targets it using the :target pseudo-class