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

griffinbeste
griffinbeste
8,008 Points

I dont know what i am doing wrong

the prompt says add a header element..... so i added an h1 and i tried the html5 header tag and nothing worked.

index.html
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Griffin Beste Photography</title>
  </head>
  <body>

      <h1></h1>

    </body>
  <section></section>
  <footer></footer>
</html>

2 Answers

Jon Wood
Jon Wood
9,884 Points

This is a little confusing, but it looks like they want an actual <header> element. It's part of the HTML5 structure elements. As opposed to the <h1> and similar elements.

Mike Hickman
Mike Hickman
19,817 Points

Also, make sure your section and footer tags all come before your closing body tag. Think of the closing body tag as the complete end of all your content, so always put your work between the <body> and </body> tags.