Learn CSS / Fundamentals


Access full course

Ready-to-use code

CSS Selectors / Pseudo-elements

See the Pen CSS Fundamentals / Selectors / Pseudo-elements by In a Rocket (@inarocket) on CodePen.

What you have learned

  • Pseudo-elements as a way to refer to content that does not exist in the source document.
  • How to style the first letter or line of a text.
  • How to use CSS to generate content before/after an element’s content.



  • Free Stuff. Exclusive access to new courses, latest news and free resources.
  • No spam. Just real content that's meant to make a difference.