Using CSS Counters

HTML Tutorial

CSS Tutorial

JavaScript Tutorial

Python Tutorial

SQL Tutorial

I found CSS counting <h2> and <h5> on the same page causes counting each to be distorted as the two counters are combined. Presumably this applies counting any two or more elements.

For example, there is a counter for the <h5> element. Now let's say after the SQL Tutorial heading I have a <h5> Example heading. Instead of the Example heading having a count of "1" it has a count of "6".