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 trialAlisha D
9,654 PointsAttribute Selector code challenge
Hi,
I'm sure the answer is glaringly obvious, but I can't figure out why the code to select the <a> element with a title attribute isn't:
a [title="More"] {}
Best regards,
Alisha
2 Answers
Dave McFarland
Treehouse TeacherThe code challenge is asking you to target any a
tag with any title
attribute. The selector you provided only selects a
tags with a specific title
attribute.
To select tags that have a specific attribute but any value for that attribute leave off the = like this:
a[title] {
}
Alisha D
9,654 PointsThanks Dave! I need to always remember that when I get it wrong, it's because I'm not reading the question properly. Appreciate your speedy response :)