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 trialCalvin Yung
701 PointsWhat's wrong with my image tag?
I really don't understand why this isn't working. I checked it with the code I have on workspaces (which I can confirm works), but I still get this error when hitting "Check work": "Make sure you include an image tag that displays "img/numbers-01.jpg".
Here's my code:
<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>
Thanks!
Dustin Matlock
33,856 PointsCalvin, I fixed syntax highlighting for you. You can refer to this video for how to get your code highlighted properly.
1 Answer
Dustin Matlock
33,856 PointsCalvin, remove the links, e.g., <a href="img/numbers-01.jpg">
from each list item, and you should be good to pass the challenge.
Calvin Yung
701 PointsOh my god thank you so much for the help Dustin!! I feel really silly for forgetting that that was code for a link. Also, thanks for the video and fixing the syntax highlighting!!
David Barnes
1,354 PointsDavid Barnes
1,354 PointsYou're missing the opening ul tag and you should make sure you are linking to the correct folder where the image is located. Hope that helps.