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

Nandakishore J
Nandakishore J
4,641 Points

The Image is appearing in the workspace, but shows 'not found' in Preview. Why is this so?

Here's the link : http://port-80-zu75orv4jx.treehouse-app.com/ There is not problem in the code, as shown below: <img src="/images/numbers-01.jpg" alt=""> Image does exist.

1 Answer

Let's have a look at your html, please.

One thing - are your images inside the img folder and does your code also use the img directory?

Steve.

Your URL is pointing to an images directory - have you renamed the img folder in the Workspace?

Nandakishore J
Nandakishore J
4,641 Points

Thank you, Steve for looking into the topic. Well, I uploaded the images to the 'images' folder

Interesting ... the Workspace calls it img; did you rename it?

The html in View Source looks fine but the images aren't working. I'm getting a 404.

Have you tried moving the files out of the directory and then back in again?

Also, remove the slash at the beginning of the link ... you've got href="/images/..." miss out that first slash.

That shouldn't affect it ... but it is worth a try!

Steve.

Nandakishore J
Nandakishore J
4,641 Points

I'll just check right now

Nandakishore J
Nandakishore J
4,641 Points

I think the Workspace ways cannot be modified, when I renamed the folder and changed in the code, everything came right. Thank you Steve.

Images are now working!! \o/