Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNeo Zheng
2,552 PointsCreate an attribute selector that will target <a> elements with a title attribute. Add a color property with the value
a [title] {color: darkred}
how comes this is not working
5 Answers
Jennifer Rai
Courses Plus Student 13,164 PointsSo it should be like this:
a[title] {color: darkred;}
Jennifer Rai
Courses Plus Student 13,164 PointsHi Baogang,
You need to remove the space after the a.
Jeremy Menicucci
19,227 PointsThere shouldn't be any space between the 'a' and the attribute you're selecting in brackets.
Mike Morales
19,833 PointsYou're missing a semicolon.
Neo Zheng
2,552 PointsThanks guys : )
Neo Zheng
2,552 PointsNeo Zheng
2,552 PointsThank you Jenny : )
Neo Zheng
2,552 PointsNeo Zheng
2,552 PointsThank you Jenny : )
Neo Zheng
2,552 PointsNeo Zheng
2,552 PointsThank you Jenny : )
Jennifer Rai
Courses Plus Student 13,164 PointsJennifer Rai
Courses Plus Student 13,164 PointsYou're welcome!