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

Benjamin Boyce
Benjamin Boyce
454 Points

how to add header element

says to ad header tag how

index.html
<!DOCTYPE html>
<html>

  <head>
     <meta charset="UTF-8">
  <title> This is a wordpress Page>
    </head>
  <body>
    <head> this is the header </head> 
    <section> </section> 
    <footer> </footer> 


    this is the boday of the page
    </body>
  </html>
David Castor
David Castor
8,501 Points

The first tag after <body> should say <header> instead of <head>.

<body>
   <header> this is the header </header>
   <section></section>
   <footer></footer>

1 Answer

Louis Morgan
Louis Morgan
2,288 Points

the <head> tag should not contain website content such as title, images, paragraphs etc. The <head> is a tag that contains your links to other stylesheets and scripts, the course will go into that don't worry! A <header> element should come immediately after the <body> tag and you put all your header content inside there such as a image, h1 and a navigation!

Hope this helps!