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

Marko Paasila
Marko Paasila
6,313 Points

HTML challenge task 6, I don't know what "header tag" I am missing

I can't pass the task; "Don't forget a header tag". I have both <header> and <h1> tags...

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title HTML challenge task 6>
  </head>
  <body>
    <header>
      <h1>Some site</h1>
      <h2>About anything</h2>
    </header>
    <section>
      <p>Something</p>
    </section>
    <footer>
      <p>Footer element yea</p>
    </footer>
  </body>
</html>

2 Answers

Hello Marko, the problem seems to stem from a mistake with your title element. You made title as a self-closing tag, but it is not.

You wrote:

<title HTML challenge task 6>

It should be:

<title>HTML challenge task 6</title>
Jeff Lemay
Jeff Lemay
14,268 Points

The < title > tag in your < head > is not self-closing so you have a syntax error.

<title>Here is my title</title>