CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS counter() Function

CSS counter() Function



The counter() function is used to return the current value of the named counter in the form of a string.




Its syntax is:- counter(counter_name, counter_style)


Further Explanation:-


Value Description
counter_name Required. The name of the counter.
counter_style Optional. The style of the counter.

Code Explanation

All Tutorials related to CSS Functions

All Sections related to CSS