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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Peter Kim](https://secure.gravatar.com/avatar/76564d3aa85eb176e19d6cd154ff148c?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Peter Kim
3,896 PointsCreate a selector that targets an img element if its title value begins with "product-". Set the border color to lightbl
Please help!
/* Complete the challenge by writing CSS below */
11 Answers
![rydavim](https://uploads.teamtreehouse.com/production/profile-photos/1857952/micro_scarabTattoo.jpg)
rydavim
18,814 PointsYou need to select certain images using the attribute selector syntax element[attribute^="value"]. Note that the ^= means starts with. If you need to look up how to select using other filters try this w3schools page.
The rest of the challenge questions will likely be similar, so here's an example to get you started...
img[title^="product-"] {
border-color: lightblue;
}
![Dominic Cyr](https://secure.gravatar.com/avatar/ff547f4a3aa2e602709b21de2fb20351?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Dominic Cyr
1,765 PointsIf you're stuck, here is my advice: do not insert a space after your img element. You may save many minutes reminding that! :-)
![Ubo Town](https://secure.gravatar.com/avatar/c28c181a667dcf04b170b35cccd7e9bc?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ubo Town
3,227 Pointsahhhhhhh that's it
![Alla Khalafalla](https://uploads.teamtreehouse.com/production/profile-photos/5207382/micro_1.jpg)
Alla Khalafalla
18,971 Pointslow-key
![johnadi](https://secure.gravatar.com/avatar/9bb709dad7b507a63be9901133ff9c47?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
johnadi
3,690 Pointsimg[title^="product-"]{ border-color:lightblue; }
![Shawn Denham](https://uploads.teamtreehouse.com/production/profile-photos/44185/micro_shawn.jpg)
Shawn Denham
Python Development Techdegree Student 17,801 Pointsah ok this is a duplicate of your other question....answered it over there
![Shawn Denham](https://uploads.teamtreehouse.com/production/profile-photos/44185/micro_shawn.jpg)
Shawn Denham
Python Development Techdegree Student 17,801 PointsHi Peter,
Would love to help if I can. What's the problem you are having?
![Yosef Ali](https://uploads.teamtreehouse.com/production/profile-photos/3608782/micro_yosefAli.png)
Yosef Ali
15,182 PointsThanks!
![Andres Ramirez](https://uploads.teamtreehouse.com/production/profile-photos/8014402/micro_AndresRamirez_profile.webp)
Andres Ramirez
18,094 PointsI've been building HTML/CSS websites for over 3 years, and never knew about this type of selectors...
They are AWESOME! Such a great lesson :)
![Roberto Da Silva](https://secure.gravatar.com/avatar/7f48b9f779e88926a573b64c1e9f06f9?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Roberto Da Silva
4,213 PointsI'm having the same issue, can anyone help ? /* Complete the challenge by writing CSS below */
img[title^="product-"] { border-color: lightblue; }
a[href*="html"]{ text-decoration:none; }
![Roberto Da Silva](https://secure.gravatar.com/avatar/7f48b9f779e88926a573b64c1e9f06f9?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Roberto Da Silva
4,213 PointsI have changed the character which should be $ but still doesn't work =/
![Andres Ramirez](https://uploads.teamtreehouse.com/production/profile-photos/8014402/micro_AndresRamirez_profile.webp)
Andres Ramirez
18,094 Pointsimg[title^="product-"] { border-color: lightblue; }
![Thomas Ma](https://secure.gravatar.com/avatar/3d18e261f1ac6b0966a387800cec9510?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Thomas Ma
15,199 Pointshi
![Kudakwashe Jama](https://uploads.teamtreehouse.com/production/profile-photos/11580837/micro_IMG_20200116_194530__1_.jpg)
Kudakwashe Jama
7,676 Pointsimg[title^="product-"] { border-color:lightblue; } what is wrong with my code