The counter-reset
property
is used to define and initialize
the counter to our desired value.
By default, it resets the counter
to zero.
In the above code snippet,
we are resetting the counter to 5.
Let's look at an example:
In the example above, the counter-reset
property
is applied to the <div>
element.
It resets the value of the chapter-counter
counter to 5.
This means that any subsequent counter-increment
for the chapter-counter
within descendants of
the <div>
start counting from the initial value of 5.