body { counter-reset: section; } h2::before { counter-increment: section; content: "Section " counter(section) ": "; }