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 Structure the Image Gallery

Kyle Biancardi
Kyle Biancardi
1,674 Points

The image is broken and when view in preview

I get a small box with an image logo. here is my code: <img src="img/numbers-01.jpg" alt"">

please help!!

Thank you in advance kyle

Sam Chaudry
Sam Chaudry
25,519 Points

Chances are your image pathway is broken or you have missed spelt the file name. Should be something like:

<img src = "desktop/yourImage.png" alt ="image"></img>

9 Answers

Tomas Pavlik
Tomas Pavlik
26,726 Points

Hi Kyle, your code is not visible, paste in inside these signs (put three at the beginning and three at the end of your code):

` - upper left key

Kyle Biancardi
Kyle Biancardi
1,674 Points

sorry to keep bugging you but i am just getting the hang of the forum and commenting!

here is my code can you please tell me what is wrong with it?

<img src="img/numbers-01.jpg" alt"">

Kyle Biancardi
Kyle Biancardi
1,674 Points

(((<img src="img/numbers-01.jpg" alt"">))) im not sure if that worked'

Kyle Biancardi
Kyle Biancardi
1,674 Points

ok i figured it out i still cant get the image to show up but here is my code. Thanks again for the help i really appreciate it!

<img src="img/numbers-01.jpg" alt"">

Tomas Pavlik
Tomas Pavlik
26,726 Points

Hi kyle, it would be better to see al the code. Isn't there a link element around the img - the mistake might be there, not in the img tag..

Kyle Biancardi
Kyle Biancardi
1,674 Points

is there a way to include my entire code and make it look like it does in workspaces? i saw you someone just put up what looked like a screen shot of their code. is there a way i can do that do it will be easier for you to read?

Tomas Pavlik
Tomas Pavlik
26,726 Points

Hi kyle, write 3 signs (usually next to number 1 on keyboard), paste your code and after your code, write another 3 signs.

Tomas Pavlik
Tomas Pavlik
26,726 Points

Or just click dow above the post answer button - and read the Markdown Cheatsheet for more info about how to paste the code..

Kyle Biancardi
Kyle Biancardi
1,674 Points

well i tried doing that and it was just a massive block of code with no structure

Kyle Biancardi
Kyle Biancardi
1,674 Points

well i don't know what i did but i accidentally deleted my index.html file so ill repost once i get back to the same spot. thanks for all your help

Kyle Biancardi
Kyle Biancardi
1,674 Points

well i don't know what i did but i accidentally deleted my index.html file so ill repost once i get back to the same spot. thanks for all your help