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

Showing Image Icon, but not the picture on basic website

I have been doing the basic HTML codes for websites, and there is a problem when I type in codes for adding images. After I have typed the exact code and I refresh the page, it shows me an image icon, but not the actual image. Is there something wrong with the coding, or is it something that has to do with the files? Please Help.

4 Answers

Try,

<img src="../img/logo.gif" alt="Smells Like Bakin">

it might help.

That worked! Thank You So Much!

Perhaps the image location is incorrect? Looking at your code will help me figure out the problem. Thanks!

I have a folder specifically named "img", that all of my photos are in. This is from copy/pasted from sublime text.

<img src="img/logo.gif" alt="Smells Like Bakin">

The code seems correct. Hmm... not sure why it won't show. The image is in the folder, right? :)

<body> <img src="img/logo.gif" alt="Smells Like Bakin"> </body>

I have a folder specifically named "img", that all of my photos are in. This is from copy/pasted from sublime text.

It seems like there is someone else with the same kind of problem: https://teamtreehouse.com/forum/images-corrupting

So it seems like my images are missing, according to that links information. Do you know the difference between the mac and the windows files, because I did not understand that part of the forum post.