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 trial
Simon DICKENS
1,325 PointsBasic Attribute Selectors Quiz
Stuck on the first Code Challenge which says "Create an attribute selector that will target <a> elements with a title attribute. Add a color property with the value 'darkred'."
my code is this
a [title] { color: darkred; }
it replies - Bummer! Please check your attribute selector, make sure the color is set to 'darkred'.
what am I missing??
SImon
3 Answers
Lachlan Mitchell
9,278 Points(Whoops, I typed my response into the wrong field! Let's try that again...)
Unless I'm missing something, the question doesn't seem to specify that you should select only anchor 'a' elements with a title attribute. Since it's just asking you to select any elements with the title attribute, you could simply use:
[title] {
color: darkred;
}
I hope that fixes it for you :)
Simon DICKENS
1,325 PointsMate that brilliant! thanks it worked!
Lachlan Mitchell
9,278 PointsYou're welcome! :D
Kevin Silvestre
13,561 PointsI enter the same code you did and I got it right. Sometimes it happens, just start the challenge over.
Simon DICKENS
1,325 Pointsive tried...not working
Jacqueline Boltik
Courses Plus Student 11,153 PointsI had the same issue...but after starting the challenge over in a new browser window it worked.
Lachlan Mitchell
9,278 PointsLachlan Mitchell
9,278 PointsUnless I'm missing something, the question doesn't seem to specify that you should select only anchor elements with a title attribute. Since it's only asking you to generally select any elements with the title attribute, you could simply use:
I hope that fixes it for you :)