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 trialPreston Klopfenstein
Courses Plus Student 336 PointsCode Challenge: Organize with unordered lists
I have now been stuck on Item 2 of this code challenge for the past hour and am getting extremely frustrated. This is what it says:
Inside the three new list items, add the following images from inside the img folder: "numbers-01.jpg", "numbers-02.jpg", and "numbers-06.jpg". Leave the alt attributes blank, and donβt add any captions or links. Just the images!
I put in:
<li><a href="img/numbers-01.jpg">
<img src="image/numbers-01.jpg" alt=""></a>
</li>
<li><a href="img/numbers-02.jpg>
<img src="image/numbers-02.jpg" alt=""></a>
</li>
<li><a href="img/numbers-06.jpg>
<img src="image/numbers-06.jpg" alt=""></a>
</li>
</ul>```
And this is how it responds:
Make sure you include an image tag that displays βimg/numbers-01.jpgβ
What am I doing wrong?!
4 Answers
Ben Falk
3,167 PointsLooks like you need to use the image src "img", not "image". Try that? Also, you don't need to enclose those images in links -- I'm not seeing anywhere in the question that requires that? I've done a quick test of the challenge, and with those two fixes, it should work for you.
Preston Klopfenstein
Courses Plus Student 336 PointsThanks! That did it.
Ben Falk
3,167 PointsTry enclosing your code in three backticks (" ``` " before and after the code) so we can see it. We'll be able to help once we know what you are working with.
Emanuel Slotwinski
3,727 PointsHi, Did you make sure you're tag is <img>
not a <image>
Andrew Moore
21,076 PointsIt looks like you've forgotten to close your quotes on the second two anchor tags. You have <a href="img/numbers-02.jpg>, should be <a href="img/numbers-02.jpg">. Same for the last link.
Amber Cookman
12,662 PointsAmber Cookman
12,662 PointsIt looks like your image elements need the file path changed to "img" instead of "image".
Also, while I'm not sure the anchor elements are necessary for that particular question, they do need the quotations closed after the file path on numbers-02 and numbers-06.