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 HTML Basics Images, Text and Links Adding Images to the Page

So my code is below, the image is not displaying? What am I doing wrong?

<!DOCTYPE html> <html> <head> <title> Experience VR</title> </head>

<body> <div>

<header>

  <h1>Experience VR </h1>
 <img src="img/featured.jpg">
    <p> A simple blog about virtual reality experiences </p>
      <nav>
      <ul>   
        <li> <a href="#">Home </a></li>
        <li><a href="#">About </a></li>
        <li><a href="#">Articles </a> </li>
        <li> <a href="#">Contact </a></li>
       </ul>   
       </nav>

</header>
  <div>

2 Answers

Steven Parker
Steven Parker
229,732 Points

It might have to do with the file organization or naming. To allow us to replicate the issue, make a snapshot of your workspace and post the link to it here.

Is featured.jpg in a folder named img? In the video's workspace the images are initially in the same folder as index.html.