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

The text editor insists that I add header element between body tags, but I already have. Still getting "Bummer" warning.

I have inserted a header element inside the body tags as were demonstrated in the video, but the text editor is telling me that it is incorrect.

index.html
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>Kent Cline | Photographer</title>
  </head>
  <body>
    <h1>Kent Cline</h1>
  </body>



</html>

4 Answers

Hi Kent,

You actually need to use a <header> element for your code. So, it should be:

<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>Kent Cline | Photographer</title>
  </head>
  <body>
    <header></header>
    <section></section>
    <footer></footer>
  </body>
</html>

In the code provided, there isn't any header tag. h1 is not a header tag, It's literally "header", you use it like div tag.

Thanks Dan. I figured that out about 5 seconds after I called out for help. Thanks again for your help.

Hi Marcus. Thanks. I saw my mistake right after I hollered for help. How do I mark this question as answered?

Appreciate your help!

Just choose which answer you want to select as best answer, and click "Best Answer" right below that answer. It will show up as resolved on the forum boards. Happy Coding, Kent!