Skip to content

Web development

CSS pseudo-elements

Before and after pseudo-elements add decorative content without changing the HTML.

4 minutes. No sign-up needed.

This lesson is part of the Web development course.

Example plan3 lessons · 12 min

CSS interaction states4 min
CSS pseudo-elementsCSS visual treatments and interaction states4 min
CSS transitionsCSS visual treatments and interaction states4 min

An example. Your plan follows your answers, so it can start later and end sooner.

Build my plan

Start free, no account needed.