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 trialAngela Brooks
229 PointsGetting this error message on my code challenge *Make sure you include "img/numbers-01.jpg" but can't figure out why.
Here is my code, what am I doing wrong?
</header>
<section>
<ul>
<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>
</ul>
</section>
<footer>
6 Answers
Scott Easter
7,148 PointsI figured it out (I just went back to the question and did it.
You need to take out the <a href... > and only leave the <img src="img/numbers-01.jpg" alt="">
You were just doing to much work. Also you will need to change the last href you have to img.
<li>
<img src="img/numbers-01.jpg" alt="">
</li>
<li>
<img src="img/numbers-02.jpg" alt="">
</li>
<li>
<img src="img/numbers-06.jpg" alt="">
</li>
Anika Jaffara
20,364 PointsHey Angela!
It looks like you're not quite closing your anchor tags correctly. It should look a bit more like this...
<ul> <li><a href="img/numbers-01.jpg">One</a></li> <li><a href="img/numbers-02.jpg">Two</a></li> <li><a href="img/numbers-03.jpg">Three</a></li> </ul>
Scott Easter
7,148 PointsAfter your src="img/number-01.jpg" there is a ">" that should not be there (before alt).
Angela Brooks
229 PointsNo, they're not showing up for some reason.
Angela Brooks
229 PointsNo they're not showing up in the preview.
Angela Brooks
229 PointsThank you both for the suggestions--I thought I corrected it but I'm still getting the same error message (Make sure you include "img/numbers-01.jpg")
here is my code again, still can't figure out the glitch
<section>
<ul>
<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">
<a href="img/numbers-06.jpg" alt=""
</a>
</li>
</ul>
</section>
Scott Easter
7,148 PointsDo the images appear when you preview the code?
Samuel Glister
12,471 PointsHi Angela,
Please make sure you close all of your image tags like the below. If you also try to organize your code spotting errors will be a lot easier.
<section>
<ul>
<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>
</ul>
</section>
Hope this helps :)
Angela Brooks
229 PointsAngela Brooks
229 PointsYay, thank you Scott! That did the trick! :-)