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

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!