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

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.