<!DOCTYPE html>
<html>
<head>
<title>Auto Css Counters</title>
<style>
body { counter-reset: section;}
h2::before { counter-increment: section; content: "Count " counter(section) ": ";}
</style>
</head>
<body>
<h1>Test:</h1>
<h2>Demo</h2>
<h2>Check</h2>
</body>
</html>
<html>
<head>
<title>Auto Css Counters</title>
<style>
body { counter-reset: section;}
h2::before { counter-increment: section; content: "Count " counter(section) ": ";}
</style>
</head>
<body>
<h1>Test:</h1>
<h2>Demo</h2>
<h2>Check</h2>
</body>
</html>
No comments :
Post a Comment