Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
body {
  counter-reset: section;
}
h2::before {
  counter-increment: section;
  content: "Section " counter(section, upper-roman) ": ";
}
</style>
</head>
<body>
<h1>Using CSS Counters:</h1>
<h2>HTML Tutorial</h2>
<h2>CSS Tutorial</h2>
<h2>JavaScript Tutorial</h2>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss_func_counter2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 18:06:00 GMT -->
</html>