Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Learn Backend Development Part-Time, Online
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner tutorial explains the difference between CSS pseudo-classes and pseudo-elements through examples including selector states, specificity, targeting, filtering, and generated content.
Syllabus
Intro
Welcome
Pseudo-Classes vs Pseudo-Elements
Starter Code
:active
:is
:any-link
Specificity with :is and :where
:target
:not
:nth-child
Create a pseudo-element
Emoji pseudo-elements
Fancy quotes with ::before and ::after
::first-letter
::first-line
Taught by
Dave Gray