Coding task · HTML and CSS course · Module 3: CSS Basics

Pseudo-elements: before and after

Use ::before, ::after, ::first-letter, ::selection to create decorative effects

Task

Uncomment and complete the CSS rules with pseudo-elements: ::before on h1 and h2, ::after as a decorative line, ::first-letter as a drop cap, ::selection