Style counterIncrement Property
Style counterIncrement Property
The counterIncrement property is used for incrementing one or more counter values. It is used in combination with counterReset property and the content property.
Syntax:-
Its syntax is:- object.style.counterIncrement OR object.style.counterIncrement = none|id|initial|inherit
Return:-
Its return is:- string having counter-increment property of an element
Further Explanation:-
Value | Description |
---|---|
none | No counters will be incremented. |
id number | The id defines which counter should be incremented. The number sets how much the counter will increment on each occurrence of the selector. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |