As web developers, proper representation of information is an important feature. One way to properly display information is by denoting hierarchy, answering the question of “what comes first?”.
One sure way to denote hierarchy is by numbering objects. Apart from the ordered list, there is no other element that allows us to increment order in CSS. If we wanted to display numbers like we have above, we had to do some preprocessing. Keeping track of the index, making sure to auto-increment it etc. Something like this.
Thankfully, with CSS we can keep track of things like this without breaking a sweat, using CSS counters.