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

YouTube

CSS Selectors Tutorial for Beginners

Dave Gray via YouTube

Overview

Learn the fundamentals of CSS selectors in this beginner-friendly tutorial video. Explore various types of selectors, including element, class, ID, group, and nested selectors. Understand the universal selector, cascade, specificity, and inheritance concepts. Discover how to check selectors in developer tools and use a specificity calculator. Gain practical knowledge on applying CSS selectors effectively while avoiding common pitfalls. Follow along with hands-on examples and enhance your web development skills in just 21 minutes.

Syllabus

Intro
Welcome
Setup
Element selectors
Class selectors
ID selectors
Group selectors
Nested selectors
Universal selector
The Cascade
Specificity
Check your selectors in dev tools
Inheritance
You do not inherit from the universal selector
More on inheritance
Do not use this!
Specificity calculator

Taught by

Dave Gray

Reviews

Start your review of CSS Selectors Tutorial for Beginners

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.