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 Use the Navigation Element

Jeffrey Hale
Jeffrey Hale
153 Points

Why can I not see my work when previewing my workspace?

I've just begun the 3rd module and I can no longer preview my work. I've gone through my code line by line for errors. When clicking the preview button, a new page opens, but it is blank. The only remaining element is the title of my page on the browser page tab.

Here is my code:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Jeffrey Hale | Designer</title>
  </head>
  <body>
    <header>
        <h1>Jeffrey Hale</h1>
        <h2>Designer</h2>
    </header>
    <section>
      <p>Gallery will go here.</p>
    </section>
      <footer>
        <p>&copy; 2014 Jeffrey Hale.</p>
      </footer>
  </body>
</html>

I fixed the code formatting.

Jeffrey,

Please see this thread for how to post code in the forums: https://teamtreehouse.com/forum/posting-code-to-the-forum

5 Answers

James Ingmire
James Ingmire
11,901 Points

It appears you have not posted any code except the doctype in your question, try show all the code you have.

The page would be blank if this is all on the page :)

Ian Conery
PLUS
Ian Conery
Courses Plus Student 7,308 Points

If that is exactly how your code is written, then the problem is your "Jeffrey Hale | Designer Jeffrey Hale Designer Gallery will go here. Ā© 2014 Jeffrey Hale." is not nested inside of any tags. For example <h1>your information here</h1>.

James Ingmire
James Ingmire
11,901 Points

As Ian Conery said, you need to nest your text <p>inside a tag</p> for the workspace to render it, if you don't know this yet watch more videos before practicing yet.

Ian Conery
PLUS
Ian Conery
Courses Plus Student 7,308 Points

You need to escape your tags like so \<h1> so we can see your code

Jeffrey Hale
Jeffrey Hale
153 Points

Thanks for all of your help. Appreciate the fast response!