Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Introducing CSS Selectors 8:00
- Type Selectors 4 objectives
- ID Selectors 4:49
- Class Selectors 8:59
- ID and Class Selectors 6 objectives
- Descendant Selectors 4:37
- Descendant Selectors 3 objectives
- Pseudo-classes 7:41
- Pseudo-classes 3 objectives
- Using Comments in CSS 5:03
- Quiz: Basic Selectors 7 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
CSS also lets us target elements based on their relationship in the HTML document. For instance, we can combine selectors to create what's called a descendant selector because it targets an element that is a descendant of another element. By “descendant”, I mean any element nested within another element, like a p element inside a header element. Descendant selectors are more specific than type selectors.
Further reading
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Naoki Yoshida
6,984 PointsWhen applying the "li" selector, the "color: tomato" property doesn't apply to the h3 elements.
Posted by Naoki YoshidaNaoki Yoshida
6,984 Points1 Answer
-
PLUS
Ryan Straker
Courses Plus Student 1,784 Points1 Answer
-
Jason Rich
Front End Web Development Techdegree Student 10,048 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up