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 Add Image Gallery Content

I watched the video several times and my code is the same. I have all photos in the "img" folder. I don't understand why

they are not loading on my website. Any tips for me to get the images to display?

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,696 Points

Jacob,

Post your code so we can better help you. My hunch is your path is incorrect.

3 Answers

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,696 Points

I can't be certain of your folder structure, but try <img src="../img/numbers-01.jpg" alt="">. Also, make your href path identical.

Remember, this has everything to do with using relative paths.

 <section>
    <ul>
      <li>
        <a href="img/numbers-01.jpg">
           <img src="img/numbers-01.jpg" alt="">
           <p> Beautiful Shot of Snoqualmie Falls</p>
        </a>
      </li>

It must have something to do with the folder path I deleted the default "numbers" pictures and entered my own into the "img" folder. I'll mess around with folder structure