pseudoElements
body {counter-reset: sections; } // resets at section hit
:invalid { counter-increment: invalidCount; }
header h1.sectiontitle:before {
content: "part" counter(sections) ": ";
counter-increment: sections;
}
counter(invalidCount) " invalid entries"; }PSUEDO ELEMENTS
p:before { content: "Dogs ";}
<p>are</p>
p:after {
content: 'cuter.';
}Material Icons

Last updated