counter-reset

The counter-reset CSS property resets the value of the counter.

Syntax

CSS

counter-reset: value;

JS

object.style.counterReset = "value";

Values

<'counter-reset'> = [ <counter-name> <integer>? ]+ | none
<counter-name> = <custom-ident>
<custom-ident>

Specifies any valid identifier that is not misinterpreted as a keyword.

<integer>

Specifies one or more decimal digits (0-9).

none

Does not alter the value of any counters.

Initial

none

Examples

counter-name

integer

none

JS

Internal

counter-increment

counter-set

External

World Wide Web Consortium (W3C)

Home Menu