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 is wrong with my header tag?? <header></header>?

This is the header tag right?: <body> <header></header> </body>

for some reason the quiz i am taking keeps saying its wrong??

index.html
<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8">
    <title><title>
  </head>
  <body>
    <header></header>
    <section></section>
    <footer></footer>

  </body>


</html>

4 Answers

Erik McClintock
Erik McClintock
45,783 Points

Sascha,

Your header element is fine, the problem here lies in your title element in the head section of your document. You are missing the forward slash in the closing title tag.

You have:

<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8">
    <title><title><!-- notice there is no forward slash in your closing title tag! -->
  </head>
  <body>
    <header></header>
    <section></section>
    <footer></footer>
  </body>
</html>

You want:

<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8">
    <title></title><!-- the forward slash has been added to the closing title tag -->
  </head>
  <body>
    <header></header>
    <section></section>
    <footer></footer>
  </body>
</html>

Unfortunately, the hints are not always helpful or correct in these challenges when there is an error, so the first thing you'll usually want to do is comb over every piece of your code to make sure there are no spelling or syntax errors, and that you have not removed, added, or changed ANYTHING that the challenge didn't specifically instruct you to.

Add that forward slash to your closing title tag, and you'll be good to go! Mistakes like this are easy to make and even harder to spot, but your code looks great otherwise! Happy coding!

Erik

Mike Hickman
Mike Hickman
19,817 Points

Hi Sascha,

The tag itself looks good. Try closing the title tag and see if that helps your code pass. Right now you have two opening title tags.

Good luck!

Mike

Ruben Carrizales
Ruben Carrizales
8,445 Points

you need to close title tag </title>.

Ahhh :p I figured it out. Had to start the code over from the beginning. Thanks for the help!