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
Pseudo-classes aren’t classes at all. You don’t use attributes to add pseudo-classes to your HTML document, the way you do with classes. Pseudo-classes instead target elements dynamically by selecting elements in a certain state, such as being hovered over by a mouse or selected using a keyboard. Pseudo-classes can also select elements based on certain characteristics, such as selecting the first element in a list.
Further reading
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Jacob Gore
Front End Web Development Techdegree Student 2,353 Points1 Answer
-
Miguel Gonzalez
Front End Web Development Techdegree Student 3,448 Points1 Answer
-
Amanda Billings
1,597 Points2 Answers
-
Jordan LaRocco
1,287 Points1 Answer
-
ja5on
10,338 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