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 trialLuke Wunderlich
238 PointsHTML "image tag" needed.
The bummer says that I shouldn't forget to include an image tag that displays "img/numbers-01.jpg." I've checked the workshop, and everything is the same.
<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>```
Luke Wunderlich
238 PointsThanks Christopher, I forgot the forward slash.
jeffreyl
2,021 PointsHey Luke! You shouldn't need the forward slash before img because it is the same level as your index.html. I answered below and you should see that it will except the simplified code that I provided. Try it and let me know if that works for you as well!
Best, Elena
2 Answers
jeffreyl
2,021 PointsHey Luke!
So you did include the image tag, however you ignored part of the question which, is why your getting the bummer. The question wants you to just add the Image and not include the link. So in order to pass this remove your anchor elements: a href="img/numbers-01.jpg"
and just have your img placed in the section:
</header> <section> <ul> <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> </ul> </section>
Akash malhotra
3,025 PointsIt's working fine for me, are you sure you're getting an error?
Luke Wunderlich
238 PointsIt says "Bummer" in red right after a red "x" with a circle around it.
Akash malhotra
3,025 PointsCan you change your code to code format, hard to read.
Luke Wunderlich
238 PointsSorry I couldn't fix that formatting thing, but I got it. I forgot a forward slash before img in the src.
Christopher Vesti
1,622 PointsChristopher Vesti
1,622 PointsYour img folder isn't in the same directory as your index.html. You need to change your src to "../img/numbers-xx.jpg"