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

Jonathan Pearson
PLUS
Jonathan Pearson
Courses Plus Student 6,704 Points

My image is not displaying when I refresh my page.

I uploaded the image files to workspace and proceeded to code in the first image but all I am getting in the browser is the image icon.

Csaba Koles
Csaba Koles
4,644 Points

It is probably a syntax error. My best guess without the code is that you use "href" instead of src="".

Jonathan Pearson
Jonathan Pearson
Courses Plus Student 6,704 Points

Is there a way for me to be able to show you my code in Workspace?

yes there is .

Post your code here like that

@```html

@```

Write these three and then next to it name so if its HTML wirte HTML without the space on a single line and close it with ```

Like on the code but without the email symbol.

Jonathan Pearson
Jonathan Pearson
Courses Plus Student 6,704 Points
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Jonathan Pearson | Photographer</title>
  </head>
  <body>
    <header>
      <a href="index.html"> 
        <h1>Jonathan Pearson</h1>
        <h2>Photographer</h2>
      </a>
      <nav>
        <ul>
          <li><a href="index.html">Porfolio</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>&copy; 2014 Jonathan Pearson.</p>
    </footer>
  </body>
 </html>

2 Answers

just watch the video and make sure everything is right

Jonathan Pearson
Jonathan Pearson
Courses Plus Student 6,704 Points

That what's confusing me. I think I did everything right and yet my picture isn't displaying. Could it be my picture file didn't connect through workspace correctly?

Ashton Morlote
Ashton Morlote
5,517 Points

I am having the same problem. All syntax seems to be correct but the image just isn't showing.

Jonathan Pearson
Jonathan Pearson
Courses Plus Student 6,704 Points

I think the problem is with workspace. I switched over to sublime text and it works fine now.