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
Eddie Freedman,
294 PointsShowing 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
Wayne Priestley
19,579 PointsTry,
<img src="../img/logo.gif" alt="Smells Like Bakin">
it might help.
Maya Han
6,069 PointsPerhaps the image location is incorrect? Looking at your code will help me figure out the problem. Thanks!
Eddie Freedman,
294 PointsI 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">
Maya Han
6,069 PointsThe code seems correct. Hmm... not sure why it won't show. The image is in the folder, right? :)
Eddie Freedman,
294 Points<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.
Maya Han
6,069 PointsIt seems like there is someone else with the same kind of problem: https://teamtreehouse.com/forum/images-corrupting
Eddie Freedman,
294 PointsSo 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.
Eddie Freedman,
294 PointsEddie Freedman,
294 PointsThat worked! Thank You So Much!