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 Add Image Gallery Content

Leon read
Leon read
286 Points

Hi, I am following the tutorial exactly and the preview is not showing? I've checked it and it all seems ok.

i am following the tutorial and at first I could not see the image on the preview but now I can not see a preview page at all. .

Hi Leon,

Can you post your code please?


Leon read
Leon read
286 Points

How do I post that Rich?

Leon read
Leon read
286 Points
   <meta charset="utf-8">
   <title>Leon Read | Designer</title> 
      <a href="index.html">
        <h1>Leon Read</h1>
          <li><a href="index.html">Portflio</a></li>
          <li><a href="about.hmtl">About</a></li>
          <li><a href="contact.html">Cotact</a></li>
        <a href="img/numbers-01.jpg">
          <img src="img/numbers-01.jpg" alt="">
          <p>Experimentation with colour and texture.</p>
      <p>&copy; 2015 Leon Read.</p>

1 Answer

Hi Leon,

I've just formatted your code in the post above so your code is a little easier to read. If you add 3 back ticks (```) on the line above where you post your code and 3 on the line below it will format it as above.

I've also just tried your code in CodePen and it seems fine to me. Everything is displaying as it should (minus the images as I don't have those).

If it's just that the images aren't showing it would be worth checking that the path to those images are correct. For example, if you have image1.jpg in side an img folder your code would look like this:

<img src="img/image1.jpg" alt="Image Alternative Text">

If your image is in the same folder as your html file your code would look like this:

<img src="image1.jpg" alt="Image Alternative Text">

Hope that helps in some way :)