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

Paul Berber
PLUS
Paul Berber
Courses Plus Student 893 Points

Img not showing up on preview from workspace.

Hello, My name is Paul. I'm having a bit of trouble with getting the img to display on preview with workspace. I have it coded as instructed but doesnt pull up any img. Here is how i have it coded.

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

Any suggestions would be very helpful and thank you very much.

2 Answers

Jackie Jen
Jackie Jen
2,723 Points

Hi Paul,

can you show me your code? from your post there is not much info.

below is the html code to include your image. image does not display on preiew mostly is the hierarchy you include in the src.

<img src=" " >

Regards

Paul Berber
Paul Berber
Courses Plus Student 893 Points

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

I logged off after trying to figure out what i did wrong several times. but just logged in now and the img showed up this time. Not sure why it was acting funny yesterday, but thank you very much for responding quickly.

Jackie Jen
Jackie Jen
2,723 Points

no problem. From above code you paste it there is some error there. you forget to put closing at the src="" show as below

correct

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