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

image extension error

<section> <ul> <li> <a href="img/number-01.jpg"> <!-- src is equal to the relative path/URL --> <img src= "img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p> </a> </li>

......

im using sublime text instead of workspace and i seem to have the correct code. My image appears on the index.html page, but when i click on the image, the extension is broken. it says ERR_FILE_NOT_FOUND. i copied the img directory to my directory that i am currently working on. and i dont think that would be the problem because the image does show on the index.html page.

Thanks for the help

2 Answers

Julian Aramburu
Julian Aramburu
11,368 Points

Hi Ben! You are missing a letter s in "number" in your href attribute , that's why you are getting 404 error :D!

Hope you find this answer helpful!

Cheers and Keep Coding!

ahhhhhh haha thanks so much :)

Levi Flint
Levi Flint
2,451 Points

Funny, I have included the "s" and I'm still getting that when I go and actually click on the image.