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
Harry Wiley
Front End Web Development Techdegree Student 4,705 Pointscss selectors quiz: Use an Attribute Selector to select the <a> element with the 'title' attribute.
I set <div class="title">
<a href="#" class="title">lorem iaculis ullamco</a
and set style.css to....a[class~="title"] {color:red;}
is there anothrt way
2 Answers
Guil Hernandez
Treehouse TeacherHi Harry Wiley,
You're close. Currently, you're targeting a elements that have "title" in their class attribute.
Since it's asking you to select a elements with a title attribute, all you need to include inside the square brackets is the attribute itself. Nothing else.
Hope this helps. :)
Harry Wiley
Front End Web Development Techdegree Student 4,705 Pointsthanks Guil. got it without creating a new class.