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 trialSiqi Sun
189 PointsAbout how to make a website
The challenge is 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!
My code is like
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt=" ">
</a>
</li>
But the error says make sure I make an img tag about ="img/numbers-01.jpg" I thiks I added it
Please tell me what`s wrong with my code?
1 Answer
Gunjeet Hattar
14,483 PointsHi Siqi,
I've just updated your question since the code was not visible. Remember to refer to link Markdown Cheatsheet just below the comment box to add code and more information
As for your question your code is fine however, I see you have added the anchor <a*>* tag. This is not required for the question since it clearly says donβt add any captions or links
This is how it should probably look. But I would recommend try removing the anchor tags and adding all the three image files to the list and then looking here for the solution
<section>
<ul>
<li>
<img src="img/numbers-01.jpg" />
</li>
<li>
<img src="img/numbers-02.jpg" />
</li>
<li>
<img src="img/numbers-06.jpg" />
</li>
</ul>
</section>
Hope this helps
Christian Andersson
8,712 PointsChristian Andersson
8,712 PointsYour code doesn't appear in your post. If you can fix that, I can have a look :)