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

Images not loading in preview

The syntax looks correct and I believe I have the images loaded correctly in the editor but the images are not loading in the preview.

Syntax:

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

Preview link: http://port-80-983bu6i52q.treehouse-app.com/

Any suggestions or guidance? Many thanks!

1 Answer

The syntax is right, the problem is with images path. If you try to open the full path of images in the browser (http://port-80-983bu6i52q.treehouse-app.com/img/numbers-01.jpg) you can see that return a 404 error, not found. To make sure to use the right path, try before with full path (http://site.com/img/img1.jpg).

Hope it helps.