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

David McLaughlin
David McLaughlin
3,615 Points

Image not showing

My images are not showing on my index.html page. The text link will show and when clicked will show the image but it just won't show on the main page.

Here is my code for the link, image, and text:

          <a href="img/numbers-01.jpg">
            <img scr="img/numbers-01.jpg" alt="">
            <p>Experimentation with color and texture. </p>
          </a>
        </li>

I have verified that the image is in the folder img and is named numbers-01.jpg. I'm using Firefox on a Mac.

try formatting it this way:

three backticks (the button under the escape key) followed by html new line your code here new line three backticks

3 Answers

your image src is mispelled. should be img src=

David McLaughlin
David McLaughlin
3,615 Points
<li>
          <a href="img/numbers-01.jpg">
            <img scr="img/numbers-01.jpg" alt="">
            <p>Experimentation with color and texture. </p>
          </a>
        </li>

as cody said, should be spelled:

<img src="" alt=""> not <img scr="" alt="">

<li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture. </p> </a> </li>

ahh okay was already fixed.