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

Add the head and body elements to the page.

Add the head and body elements to the page.

index.html
<!DOCTYPE html>
<html>
  <head>
    <body>
      </body>
  </head>

  </html>

<!DOCTYPE html> <html> <head> <meta> <link> <title> </head> <body> </body> </html>

3 Answers

Not sure what your question is, but your head and body tags are incorrect :) Body and head are not nested.

changed from comment to answer

Vincent,

You have your body tag nested inside the head tag as Shawn mentions. You should open then close the head tag. Then open and close the body tag.

<!DOCTYPE html> <html> <head> <meta> <link> <title> </head> <body> </body> </html>

Jeremy Canela
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jeremy Canela
Full Stack JavaScript Techdegree Graduate 30,766 Points

You have the body tag nested inside the head tag. The body tag should be outside. Try this:

<!DOCTYPE html>
<html>
    <head>
        /* Stuff here */
    </head>
    <body>
        /* Stuff here */
    </body>
</html>

Hope it works :)!