counter-set

The counter-set CSS property sets the value of the counter.

Syntax

CSS

counter-set: value;

JS

object.style.counterSet = "value";

Values

<'counter-set'> = [ <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-reset

External

World Wide Web Consortium (W3C)

Home Menu