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

What does it mean "Don't forget a header tag?"

I've entered: <header> <h1>Blah Blah</h1> </header>

Says I still need to add a header tag

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title> Title Element <title>
  </head>
  <body>
    <header>
      <h1>Header Tag</h1>
      <h2>Blah</h2>
    </header>
    <section></section>
    <footer></footer>
  </body>
</html>

I think you have not properly closed title tag that is why it is showing this error.

Julio Akiyama
Julio Akiyama
9,068 Points
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <header></header>
    <section></section>
    <footer></footer>
</body>
</html>

Check your </title>

1 Answer

Hi Hannah,

There is an issue with your code however there is also an issue with the challenge.

Your closing <title> tag isn't closed correctly. It should be </title>. See code below for complete answer:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <!-- Added closing tag and removed white space -->
    <title>Title Element</title>
  </head>
  <body>
    <header>
      <h1>Header Tag</h1>
      <h2>Blah</h2>
    </header>
    <section></section>
    <footer></footer>
  </body>
</html>

The challenge shouldn't of let you pass the step where you added the title element.