CSS · Properties — CSS Lists and Counters

counter-set

The CSS counter-set property. Initial value: none. Not inherited.

Syntax
counter-set: [ <counter-name> <integer>? ]+ | none

Example

Try it

Notes

Media: all. Applies to: allElements. Computed value: asSpecified.

More in this group

counter-increment counter-reset list-style-image list-style-position list-style-type

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course