Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Jason Larkin
13,970 PointsAttribute selector
a [target="_title"]
{
color:darkred; }
I'm having trouble with this attribute selector challenge. The objective is to change the color of all <a> tags that have titles to dark red. I have tried everything and am out of ideas. Thanks in advance for any replies.
3 Answers
Jason Larkin
13,970 PointsThanks Kevin, I did manage to solve it finally. I think it turned out to be the code that you wrote minus the "a". Thank you for the reply though!

Kevin Kenger
32,834 PointsHey Jason,
I'm not sure on this, but I think you can just target the attribute itself by only including the attribute's name.
Like this:
a[title] {
color: darkred;
}

James Barnett
39,199 PointsThat will select any <a>
element with a title
attribute, that's overly specific, as the task requests any element that has a title
attribute.
Jason Larkin
13,970 PointsThanks James, I did finally get it right. Thanks for the reply.