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

not sure how to add a header element

not sure how to make a header element isn't it just <body> <header> </header> </body>

3 Answers

Stone Preston
Stone Preston
42,016 Points

is it asking for a header tag or a head tag? the challenge requires you to add both depending on the task you are on. a header tag is

<header></header>

and goes inside the body like so:

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <header></header>
  </body>
</html>

whereas a head tag is

  <head></head>

and goes before the body but inside the html tag like so:

 <!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
  </body>
</html>

the last part of the challenge requires a header, section, and footer so be sure you add all three if you are on the last stage

Douglas Marriott
Douglas Marriott
3,555 Points

Is this what you are looking for... <h1>Header</h1>

Yeah, i'm looking for the header, i put it like this

<!DOCTYPE html> <html> <head> </head> <body> <header> <h1>Header one</h1> <h2>Header two</h2> </header> <section> <p>Section goes here</p> </section> <footer>Ā© Copyright goes here </footer.

but it still says that i need a header tag, can't seem to see what i'm doing wrong?