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

Rutwik Patel
PLUS
Rutwik Patel
Courses Plus Student 963 Points

Code wont work

While Importing Images i deleted my code, i tried to re-type it

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title> Rutwik Patel Programmer</title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Rutwik Patel</h1>
        <h2>Programmer</h2>
      </a>
      <nav> 
      <ul>
        <li> <a href="index.html"> Portfolio </a></li>
        <li> <a href="about.html"> About </a></li>
        <li> <a href = "contact.hmtl"> Contact </a></li>
        </ul>


   </nav>
        </header>
              <section>
                  <ul>
                     <li>
                      <img src="img/numbers-01/jpg" alt="">
                    </li>
                  </ul>
               </section>
    <footer>
      <p>&copy; 2014 Rutwik Patel.</p>
    </footer>
  </body>
</html>

But it won't work. Any idea why?

Rutwik, I fixed syntax highlighting for you. Could you provide some more detail on the issue you're having?

Rutwik Patel
Rutwik Patel
Courses Plus Student 963 Points

when i try to expand it to the browser, it's just an empty page

3 Answers

Eduardo Velasquez
Eduardo Velasquez
15,697 Points
<img src="img/numbers-01/jpg" alt="">

should be

<img src="img/numbers-01.jpg" alt="">

Edit by Dustin Matlock: You have a / instead of a . in your code.

Are you saying when you try to preview your code in a workspace it does not show anything? Maybe try saving your work, deleting that workspace, and creating another one. I would recommend Google Chrome for Workspaces since it has more features and fewer bugs than other browsers.

Rutwik Patel
Rutwik Patel
Courses Plus Student 963 Points

i'm already using chrome and yeah i tried saving and re-opening. It's still blank for some reason

Eduardo Velasquez
Eduardo Velasquez
15,697 Points

Check your file name in your img tag