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

CSS

Stuck 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

Kyle,

Read the question again, what do you need to select?

In the editor scroll to your right.

Guil Hernandez talks about "Attribute Selectors", at 3:36 in the "More Selectors" video.

Instead of code removed just do code removed.

Hi 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.

Once 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).