CSS Tutorial
Lists can be classified as ordered lists and unordered lists.
In ordered lists,CSS can be used to mark the list items with alphabet and numbers.
CSS counters are "variables" maintained by CSS whose values can be incremented by CSS rules
CSS counters variable values can be incremented by CSS rules.
CSS counters use the following propertiesā
CSS counter first created with counter-reset.
Property | Description |
---|---|
content | Used with the ::before and ::after pseudo-elements, to insert generated content |
counter-increment | Used to increments one or more counter values |
counter-reset | Used to creates or resets one or more counters |
When the above code is compiled , it produces the following result.