Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website HTML First Create the Content Containers

Hey dudes, ive typed the code exactly as it's displayed in the video but I'm not getting the results i'm expecting,

The example looks like:

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>How to win. No matter what. | A Manifest of an Evil Empire</title> </head> <body> <header> <h1> How to Win. No matter what.</h1> <h2> A Manifest of an Evil Empire</h2> </header> <section> <p>Gallery will go here.</p> </section> <footer> <p>© 2014 The Onethirtyeight.</p> </footer> </body> </html>

I noticed the <!DOCTYPE html> isn't the same color as it is on the video. Is that the problem perhaps? Thats the only difference I can see.

6 Answers

Hi Sid, your HTML code is correct. I tried it and it shows correctly to me. If you use another text editor it won't be highlighted with the same color-code and even in workspaces if it has sightly changed since the video was created it might affect the color coding according to what changes were done. Overall the most important aspect is if your code works on a browser as it was meant to be, I ran your code and it works well :)

Hi Sid!

Please could you re-post your code as it has not been properly formatted. If you do not know how to properly format your code then please refer to the markdown cheatsheet below the chat box.

-Luke

Thanks. It's my first time posting. I'll try again.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>How to win. No matter what. | A Manifest of an Evil Empire</title>
  </head>
  <body>
    <header>
      <h1> How to Win. No matter what.</h1>
      <h2> A Manifest of an Evil Empire</h2>
    </header>
    <section>
      <p>Gallery will go here.</p>
    </section>
    <footer>
      <p>&copy; 2014 The Onethirtyeight.</p>
    </footer>
  </body>
</html>

Thanks Gloria.

Im not using an independent HTML editor, I'm purely using Workspace. If you look at the thread in this track, lots of people are having the same issue. Apparently theres something fishy going on. Thanks for validating for me. Have an awesome Saturday :)

You are welcome. If you are worried about it or think it might be a bug, you can send an email at help@teamtreehouse.com with a link and a screenshot, to find out.

Roberto Marungo
Roberto Marungo
1,129 Points

It is not running the code in everyone's work space because the site is running the old workspace here is a solution (CLICK LAUNCH WORKSPACE) and under the right hand corner is a (Launch a Different workspace) click that and hit the (+) and name it something new there will be multiple drop down option for the the first one click any and the second one hit html5 also give it a title. Now go ahead and go to your code from your old workspace and copy and paste it on the new workspace and hit save and run it again :)