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

Rebecca Castor
Rebecca Castor
1,474 Points

It says add a header element, a section element, and a footer element. then says dont forget to a header, but i did...

The question says add a header element, a section element, and a footer element. then when I check my answer it says don't forget to add header, but i did, <header></header> <section></section> <footer></section> what is it that I'm missing?

index.html
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>
  </head>
  <body>
   <header></header>
   <section></section>
   <footer></footer>
   </body>
</html>
Rebecca Castor
Rebecca Castor
1,474 Points

Thank you everyone. Funny thing is I noticed a second after asking lol.

2 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi Rebecca Castor,

There appears to be a validation bug in this challenge as you have an unclosed title element in your HTML structure. Simply close it and your code will pass.

<title></title>

cc: Nick Pettit

Happy coding!

Michael Davis
PLUS
Michael Davis
Courses Plus Student 12,508 Points

First thing I notice, your <title> tag is unclosed. Once that's closed, the other tags should resume their normal duties.