Headings and Text in CSS

We have below heading tags.
  • h1
  • h2
  • h3
  • h4
  • h5

css for automatic numbering of headings

 
:root{
    counter-reset: autoheadings;
    }
    
    h1{
    counter-increment:autoheadings;
    }
    
    h1::before{
    content : counter(autoheadings)
    }

Web development and Automation testing

solutions delivered!!