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

how to add a header tag?

I don´t know how to add a header tag

index.html
<!DOCTYPE html>
<html>
  <head>
  <meta charset="UTF-8" />
  <title> Here comes my side | <title/>
    </head>
  <body>
    <header> Sebastian Haberl | Designer 
    </header>
    <section> Hello 
    </section>
    <footer> Contact 
    </footer>
    </body>

</html>

2 Answers

Kaetlyn McCafferty
Kaetlyn McCafferty
12,193 Points

Header tags are used to hold headings. Everything you want IN your heading (any text, paragraphs, links, navs, etc) will be nested between the two header tags, like so:

<header>
   <h1>This is a heading1 tag. It will have a large font-size.</h1>
  <p>You can also throw in some paragraphs, or anything you'd like really.</p>
</header>

Also, note that your closing title tag has the / in the wrong place:

<title><title/> (that's yours)
<title></title> (that's what it should look like)

There are levels of header tags, starting at the top most. The h1 tag, downwards. Generally you wont see many past h3. A header tag is made simply like this: <h1>This is my heading</h1>. If you wanted it to be a subheading, or the next heading down it would be <h2>This is my heading</h2>

Hope this helps