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

It keeps telling me to put the header tags inside the body tags, but I am already. What am I doing wrong?

I'm typing <body> <header> </header> </body> What am I doing wrong?

index.html
<!DOCTYPE HTML>
<html>

  <head>
    <title> Welcome. </title>
  <meta charset="8">
  </head>
  <body><header></header></body>
</html>

2 Answers

Daniel Gauthier
Daniel Gauthier
15,000 Points

Hey Emily,

The question you appear to be stuck on is asking you to "Add a header element, section element, and footer element."

You haven't added your section or footer elements yet.

The code below will pass:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>World's Greatest Website</title>
  </head>

  <body>
    <header>

    </header>

    <section>

    </section>

    <footer>

    </footer>
  </body>
</html>

Good luck with the challenge!

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

I see that you have this code:

<meta charset="8">

Try writing this:

<meta charset="UTF-8">

I have the sneaking suspicion it's not even making it down to your header and body tags.

Daniel Gauthier
Daniel Gauthier
15,000 Points

Good catch Jennifer, I missed that one. I'm surprised that it passed her to the next question since you're asked to set the character set earlier in the challenge.

I just ran through the challenge again and it passes with a charset of "8", which would kind of make sense, since the character set attribute isn't explicit. It would definitely be better to ask the student to use "UTF-8" since it's the character set they'll be working with almost exclusively.