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

Tracey McEntyre-Schofield
Tracey McEntyre-Schofield
233 Points

image gallery

my picture isn't showing up in the preview box. I put in exactly what was shown

3 Answers

Tracey McEntyre-Schofield
Tracey McEntyre-Schofield
233 Points

Ok, Dane here it is <!DOCTYPE html> <html> <head> <meta charset="uft-*"> <title>Tracey Schofield | Photographer</title> </head> <body> <header> <a href="index.html"> <h1>Tracey Schofield</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html">Porttfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <section> <ul> <li> <img src="img/numbers-01.jpg" alt=""> </li> </ul>
</section> <footer> <p>Ā© 2014 Tracey Schofield. </p> </footer> </body> </html>

Tim Keegstra
Tim Keegstra
3,627 Points

Maybe make a screenshot of the code and upload it on http://tinypic.com/index.php instead.

Tim Keegstra
Tim Keegstra
3,627 Points

Could you copy your code related to the image? Use the Markdown Cheatsheet to see how to do so.

General thought: you probably forgot a syntax somewhere or you didn't place the image in the right place in the directory. Steps:

  1. Check where you placed the image, make sure the src=" " part is referring to the right place.
  2. Check whether you got all the following right <, =, ", > :

<img src="absolute or relative link here" alt="not needed but hey">

Dane Parchment
MOD
Dane Parchment
Treehouse Moderator 11,077 Points

Can you please post both your html/css for us to see, that way I or anyone else here can properly help you.