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 Create the Content Containers

Header and Footer question says im wrong with the placement

The code challenge keeps saying Bummer, a section element needs to appear between the <body> </body> tags.

My code is like this but it still keeps saying that I'm wrong.

<!DOCTYPE HTML>
<html>
  <head>
    <title> Mijn eerste website </title>
  <meta charset="utf-8">
        </head>
  <body>
    <header> dfsfsdfsd </header>
    <footer> fdsfsdfsdfs </footer>   
  </body>
</html>

2 Answers

Hey Tom,

Have you tried adding a section element as indicated?

<!DOCTYPE HTML>
<html>
  <head>
    <title>Mijn eerste website</title>
    <meta charset="utf-8">
  </head>
  <body>
    <header>
    </header>
    <section>
    </section>
    <footer>
    </footer>   
  </body>
</html>

Hi Jacob,

Thank you for your help, this works. Did not know that the section element was a must, also had a look on w3schools and there was nothing noticed about the section element.