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!

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


my image isn't showing up but my codes are all right help please?

ok my coding is all done and my website is fine but my image just isn't showing up

2 Answers

John Sawyer
John Sawyer
339 Points

Can you post your code and tell us where the picture is saved? Your code needs to know where to find your picture.

Zhihao Wang
Zhihao Wang
9,687 Points

Are you sure? Can we see an example please? You should go back and look at your code, here's an example that you can look at:

<img src="img/myimage.jpg" alt="">

Check if you are using relative directing when you should be using absolute, and also check to see that your image is the right format, if it's png, the code should look something like this...

<img src="img/myimage.png" alt="">

Check for silly syntax errors too.