Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

CSS Pseudo-Classes vs Pseudo-Elements - Pseudo-Selectors Tutorial

Dave Gray via YouTube

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

Reviews

Start your review of CSS Pseudo-Classes vs Pseudo-Elements - Pseudo-Selectors Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.