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 Use HTML Elements

Next challenge in "how to make a web site" is to "add head and body elements to the page," but aren't they there now?

I don't understand this question because my page already has head and body elements, doesn't it? Sorry, confused

index.html
<!DOCtype html>
<html>
  <head><title>
    <meta charset="utf-8">Nick Pettit | Designer
    </title></head>
    <body>
      <header><h1>Nick Pettit</h1>
        <h2>Designer</h2></header>
      <section><p>Gallery here</p></section>
      <footer><p>&copy; 2004 Nick Pettit </p></footer>
    </body>
    </html>

2 Answers

Hi Felicia,

You look to have added more than the challenge has asked for.

By stage 3 you should only have the following code in place:

<!DOCTYPE html>
<html>

</html>

Stage 3 (Add the head and body elements to the page) would then look like this:

<!DOCTYPE html>
<html>
  <head>

  </head>
  <body>

  </body>
</html>

Hope that helps :)

-Rich

Thanks, Rich! That's exactly what happened -Felicia

No problem :)

-Rich

Jonathon Lumpkin
Jonathon Lumpkin
3,806 Points

If you are referring to an actual video, then yes, the elements are currently there. If you mean in a quiz, normally it has you type out the elements as part of a new code block. I.e. it isn't using the HTML code you've been writing with Nick.