DEV Community


Discussion on: Master useful CSS pseudo-elements

ruppysuppy profile image
Tapajyoti Bose Author • Edited

You may check out the mdn docs or w3schools. Basically counter is used to count elements, counter-increment increments the count for the counter and counter-reset resets it (used to start the count from 1 again incase multiple ol tags are present in the page). I used the name itemCounter, but you may name it as you please