Dynamic numbering with CSS counters

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI12 min

About this video

A CSS tutorial on using counters to number elements dynamically, covering how to create and display a counter, increment it, change numbering styles, and reset counters. It suits people who already write HTML and CSS.

What you’ll learn

  • Create a CSS counter and display its value with the content property
  • Change how a counter increments and choose numbering styles
  • Reset counters and avoid common pitfalls with the content property