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

Jeremy Dawson
Jeremy Dawson
1,968 Points

Question 6 add a header element to the code.

Hi Again

I am stuck on a question in the test where I am asked to add a header and a footer tag, when I select check work it explains that I haven't entered a footer tag. Where am I going wrong? Here is my code:

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

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

1 Answer

You have a very tiny typo here:

<title><title/>

Which should be:

<title></title>

It's causing the HTML to not render correctly, since you're only seeing the code at this point, it makes it really hard to visually see anything breaking. I'll admit that it had be stumped for a few minutes until I noticed the closing tags were a different color.

Jeremy Dawson
Jeremy Dawson
1,968 Points

Thanks Luke, Sorry if that wasted your time. I also just couldn't see it. I'm really impressed with the speed on this forum, hopefully I'll give back one day!.

Jeremy Dawson you didn't waste my time at all, helping people is something I love doing! I'd say that most of the bugs I fix on a daily basis in my own code are simple typos like this, and sometimes it can be really difficult to spot them.