:nth-child() has an amazing upgrade not enough people are talking about

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

ShortIntermediateUI1 min

About this video

A short CSS tutorial explaining how the :nth-of-type() selector differs from selecting by class, using a header example.

What you’ll learn

  • Explain how :nth-of-type() counts elements by tag rather than by class