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
In our last video, we worked with type selectors, which target every matching HTML element. Which means we’re making great progress. But what if, instead of selecting all the paragraphs in your HTML surrounded by the
element, you only wanted to style one specific paragraph? That’s where ID selectors come in. An ID selector lets us assign a unique ID to an element. That way, we're able to specifically target an element based on its ID attribute.
Further reading
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
han lee
1,088 Points#education { border: 3px solid red; } It is highlighted red as in there is a error
Posted by han leehan lee
1,088 Points1 Answer
-
Julia Hamilton
1,147 Points1 Answer
-
Laura Fernanda Canon Nino
5,772 Points1 Answer
-
Jonathan Arceo
3,377 Points1 Answer
-
odysseywow
2,783 Points1 Answer
-
Zedrick Palmer
3,383 Points1 Answer
-
Jonathan Diaz
Data Analysis Techdegree Student 30 Points2 Answers
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