Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- :first-child and :last-child 4:15
- :first-child and :last-child Challenge 2 objectives
- :only-child and :empty 4:58
- Substring Matching Attribute Selectors - "Begins With" and "Ends With" 8:19
- Substring Matching Attribute Selectors - "Contains" 6:44
- Substring Matching Attribute Selectors Challenge 3 objectives
- Element States Pseudo-Classes 6:20
- Structural and Element States Pseudo-Classes Review 5 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
With substring matching attribute selectors, we can target specific pieces of an attribute's value, like certain letters and words.
Quick Reference
Using substring matching attribute selectors
-
^
tells the browser to match a piece of code that’s at the beginning of an attribute's value -
$
matches a piece at the end of an attribute's value. -
*
matches any part of an attribute's value
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Sam Weeks
Front End Web Development Techdegree Student 16,699 Points1 Answer
-
Jack Jones
7,246 Points1 Answer
-
Yoel Dovid Cohen
13,405 Points1 Answer
-
Zijun Liao
13,409 Points1 Answer
-
Peter Retvari
Full Stack JavaScript Techdegree Student 8,392 Points1 Answer
-
Nicholas Wallen
12,278 Points2 Answers
-
Philip Kroupoderov
Front End Web Development Techdegree Graduate 21,641 PointsDoes anyone know how to place the svg icons after the links not before them?
1 Answer
-
Devin Kelly
7,343 Points1 Answer
-
3lg3
13,631 Points1 Answer
-
Sean Flanagan
33,236 Points2 Answers
-
brevans26
15,198 Points1 Answer
-
Angel Vickery
3,585 Points2 Answers
-
Barry Allen
514 Points1 Answer
-
Learning coding
Front End Web Development Techdegree Student 9,937 Points2 Answers
-
Learning coding
Front End Web Development Techdegree Student 9,937 Points1 Answer
-
Matthew Keys
1,922 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