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
Kyle Sox
Courses Plus Student 9,946 PointsStuck at Code Challenge Question -CSS Foundations / Selectors / More Selectors
CSS Foundations / Selectors / More Selectors code challenge.
Third question:
Use an Attribute Selector to select the <a> element with the 'title' attribute. Give it a color property with a value of red.
My wrong answer:
a[class~='title'] {
color: red;
}
What am I doing wrong?
3 Answers
vandevski
20,617 PointsKyle,
Read the question again, what do you need to select?
In the editor scroll to your right.
Chase Lee
29,275 PointsGuil Hernandez talks about "Attribute Selectors", at 3:36 in the "More Selectors" video.
Chase Lee
29,275 PointsInstead of code removed just do code removed.
James Barnett
39,199 PointsHi Chase James
I've removed your code here because here on the Treehouse forum we do not just give away the answers. Instead we try to give users hints and point them in the right direction so they can learn the material themselves.
So in the future, please be mindful of other users and don't just type out the answer.
Thanks and happy forum'ing.
vandevski
20,617 PointsOnce I got stuck on a similar question like this. And I remember James giving me a hint instead of simply providing me with the answer.
It's a better way to learn if you have to look for it yourself (with a little guidance if needed).