<html>
<head>
<style>
p {
counter-increment: myIndex;
}
p::before {
content:counter(myIndex);
}
</style>
</head>
<body>
<p>First make a variable (myIndex) and make it increase every time a p element occurs.</p>
<p>Then insert the counter in front of all p elements</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_content_counter by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:00:22 GMT -->
</html>