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

Judith King
Judith King
1,356 Points

adding images

what am i doing wrong. so frustrated.

<section> <ul> <li><img src="img/numbers-01.jpeg" alt""></li> <li><img src="img/numbers-02.jpeg" alt""></li> <li><img src="img/numbers-06.jpeg" alt""></li>

  </ul>
</section>
Michael Alaev
Michael Alaev
5,415 Points

Can you post the full code here?

2 Answers

What exactly are you trying to add the image to? As Michael Alaev said, the full code would be very helpful :)

I can only guess that you're trying to add an image to a list element, so you'd do as such:

'''html <li><img src="images/photo1.jpg" alt=""></li> ''' or for http links:

'''html <li><img src="https://wac.a8b5.edgecastcdn.net/80A8B5/achievement-images/flags/ipad_default_2x_cover-css-foundations.png" alt=""></li> '''

Judith King
Judith King
1,356 Points

THANKS FOR RESPONDING. I WAS ABLE TO figure it out, i had the file name wrong.