i

Learn HTML and CSS in 10 Days

CSS Counters

The CSS counters are much like the variables. They are looked after by CSS.

Let’s have a look at a list of properties that the CSS counter uses.

  • Counter-reset – It helps in creating or resetting a counter.

  • Counter-increment – It helps in increasing the value of the counter.

  • Content – It helps in inserting generated content.

  • Counters() or counter() function – It helps in adding value to the counter of the element.