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 trial

HTML How to Make a Website Creating HTML Content Organize with Unordered Lists

Web Design Task 2 of 2

I'm trying to insert some pictures from the img folder but it doesn't seem to work. Can someone tell me if this is the right code: <img src="img/numbers-01.jpg" alt=""> I've copied it directly from the tutorial video but doesn't seem to worl

7 Answers

Hristo Yankov
Hristo Yankov
2,065 Points

Hi Anthony! Thank you very much for your willingness to help, however, I've found my problem. I've put the unordered list in a navigation item and this is why I failed the verification. As soon as I removed the <nav> tag the test passed successfully. Forgot to mention it here.

No problem :)

Can you show us an example of your code?

<section> <nav> <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> </nav> </section>

Please see below:

<section> <nav> <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> </nav> </section>

Hi Roland, have you downloaded the project files from the course notes and then uploaded the 'img' folder to either your Treehouse Workspace or local folder on your computer where your index.html file is located?

Hi Anthony yes I've uploaded to workspace, it seems to show the images on that but when I do the test it keeps saying its wrong. its not a problem just want to make sure I'm using the right code

Hristo Yankov
Hristo Yankov
2,065 Points

I have the same issue. Anyone have any ideas?

Hi Hristo, can you post your code here so we can take a look and maybe help you work it out?

Problem solved thanks Hristo