Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

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.