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

I have everything just like Nick's but no image is showing up, just a dot showing that something is there. Any ideas?

But no image is showing up.

5 Answers

Can you copy and paste your code so we can take a look at it?

To copy/paste using code blocks, put ``` before and after your code. That will produce the following effect...

<code></code>
Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

What we need to see is the location of your image file in relation to the html document.

It’s best to use a relative file path like this.

<img src=β€œimage.png” />

<img src=β€œimg/image.png” />

Remember to include the directory if needed. :)

Nick has it looking like this. <ul> <li> <img src="img/numbers-01.jpg"alt="">

Did you create a folder to put your images in? Is the folder titled "img"?

If you just dropped the images in the same folder as your index.html file, then your path is wrong. In that case you can simply use the following...

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

Otherwise, check the video at the 2:20 mark and make sure you created a folder for your images and that you transferred your images there. Then, the <img> tag should work as you have it.

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ric Logsdon|designer</title> </head> <body> <header> <a href="index.gtml"> <h1>Ric Logsdon</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio></a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <secetion> <ul> <li> <img src="img/numbers-01.jpg" alt=""> </li> </ul> </secetion> <footer> <p>Β©2014 Ric Logsdon.</p> </footer> </body> </html>