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 trialHenry Tou
3,886 PointsCode Challenge issue - substring matching attribute selectos
Um im not sure what im doing wrong here the "$" seems to be in the right place but the error states that i dont have text-decoration set to none?!?! I dont get it.
/* Complete the challenge by writing CSS below */
img[title^="product-"] {
border-color: lightblue;
{
a[href$=".html"] {
text-decoration: none;
{
2 Answers
Andrews Gyamfi
Courses Plus Student 15,658 PointsHi Henry,
You are having the error because you are using opening angle brackets in place of closing angle brackets:
/* Complete the challenge by writing CSS below */
img[title^="product-"] {
border-color: lightblue;
{ //You are using opening angle brackets here instead of closing '}'
a[href$=".html"] {
text-decoration: none;
{ //same here
Modify your code like this and it should work fine:
/* Complete the challenge by writing CSS below */
img[title^="product-"] {
border-color: lightblue;
} //change this to a closing angle bracket
a[href$=".html"] {
text-decoration: none;
} //change this to a closing angle bracket
Cheers!
Henry Tou
3,886 PointsSigh... i think i need a break, such an obvious miss. Thank you Andrews, i was pulling my hair out with this one.
Andrews Gyamfi
Courses Plus Student 15,658 PointsAndrews Gyamfi
Courses Plus Student 15,658 PointsYou are most definitely welcome Henry!
Go get a cup of coffee and enjoy your coding :).