How to Automatically Number Elements with CSS Counters
By Erisan Olasheni CSS counters are used to add counts to elements. The count is added by providing variables that can be initialized (using counter-reset), and these variables can then be incremented by CSS rules. Many developers overlook this power...
freeCodeCamp.org