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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Nerinna Valera](https://secure.gravatar.com/avatar/8a0cb5e1a038b5e62df1924b796511b1?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Nerinna Valera
1,091 PointsPreview Not Showing Correctly
Hi there, I'm following the tutorial but when I click preview it doesn't work. Below is my code:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Nerinna Valera | Photographer</title> </head> <body> <header> <a href="index.html"> <h1>Nerinna Valera</h1> <h2>Photographer</h2> </a> <nav> <ul> <li>Portfolio</li> <li>About</li> <li>Contact</li> </ul> </nav> </header> <section> <ul> <li> <img src="img/numbers-01.jpg" alt=""> </li> </ul> </section> <footer> <p>© 2015 Nerinna Valera</p> </footer> </body> </html>
When I click preview it shows the following:
Index of /
img/
2 Answers
![Fidel Severino](https://secure.gravatar.com/avatar/b41e38bbc265bea3c5d463c70b6b6428?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Fidel Severino
3,514 PointsAre you following along in Workspaces or locally on your computer?
The code you provided above works for me in Workspaces. The result you're getting suggests to me it's probably an issue with your local setup/folder structure. Looks like you might be looking at the folder containing all the files (the root folder). Are you clicking on the index.html file in order to preview the project?
![Brendan Warner](https://secure.gravatar.com/avatar/afa7d0ee32ac84e8843dbcb7b35de3c6?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Brendan Warner
Courses Plus Student 514 PointsAntonio, I had the same problem. It turns out I accidentally put the index.html file in the image folder. If you drag out your index.html file out of the image folder and down from the image folder, close Workspaces then re-open, it should work then. :)
Antonio English
Front End Web Development Techdegree Graduate 18,103 PointsAntonio English
Front End Web Development Techdegree Graduate 18,103 Pointsi'm getting the same error message. My img folder is the same on workspaces.
Antonio English
Front End Web Development Techdegree Graduate 18,103 PointsAntonio English
Front End Web Development Techdegree Graduate 18,103 Pointshere's my code:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Antonio English | Designer</title> </head> <body> <header> <a href="index.html"> <h1>Antonio English</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> <section> <ul> <li> <img scr="img/numbers-01.jpg" alt=""> </li> </ul> </section> <footer> <p>© 2015 Antonio English.</p> </footer> </body> </html>