Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> body { /* "my-counter" to 0 */ counter-reset: my-counter; } h2::before { /* "my-counter" by 1 */ counter-increment: my-counter; content: "Section " counter(my-counter) ". "; } </style> </head> <body> <h2>HTML</h2> <h2>Tutoriel CSS </h2> <h2>Tutoriel JavaScript</h2> <h2>Tutoriel PHP</h2> </body> </html>