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
Danny Odisho
6,085 Pointschallenge 1/3 create an attribute selector that targets<a> element with a title attribute. add a color property with the value darkred.
Bummer! Please check your attribute selector, make sure the color is set to 'darkred'.
/* Complete the challenge by writing CSS below */
a[title="more!"] {
color: darkred;
}
please help me. I do not think I am doing anything wrong but for some reason I'm gettting the Bummer! value that I'm wrong up top! I would appreciate any help!
4 Answers
eirikvaa
18,015 PointsI have really no idea why you set the title attribute equal to the string "more!". You are asked to target anchor elements that have a title attribute, no matter the value they equal to. Remove the string and the equal sign, and you're fine.
Danny Odisho
6,085 Pointsdisregard the numbers I copy and pasted. here is what I have as code. a[title="more!"] { color: darkred; }
Juan Jose Cortes Guzman
7,894 PointsFor what is the code between the brackets? The digits in your code are the line numbers?
Danny Odisho
6,085 Points@ juan yeah its the code lines sorry bad copy and paste. @ Eirik Thank you!! I can't believe I put the whole string you were right! I for some reason misunderstood. I appreciate the help!
eirikvaa
18,015 PointsNo problem, glad to help!