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 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.