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

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 :)!