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 trialBraeden Adams
1,527 PointsTell me what i did wrong for the code challenge
I need help with the code challenge for creating html content stage 3 task 2. The error i get is Make sure you include an image tag that displays "img/numbers-01.jpg".
my code is
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
</a>
</li>
<li>
<a href="img/numbers-02.jpg">
<img src="img/numbers-02.jpg" alt="">
</a>
</li>
<li>
<a href="img/numbers-06.jpg">
<img src="img/numbers-06.jpg" alt="">
</a>
</li>
please tel me what im doing wrong.
3 Answers
Calvin Nix
43,828 PointsHey Braedon,
Remove the anchor tags that you gave surrounding your images.
Your list item should look like this.
e.g.
<li><img src="pathToImage.jpg" alt=""></li>
Dino Paškvan
Courses Plus Student 44,108 PointsRe-read the challenge description: Leave the alt attributes blank, and don’t add any captions or links. Just the images!
You've added links to the images.
Braeden Adams
1,527 PointsThanks, that really helped