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

Code Challenge

"Add the head and body elements to the page" is the task. I'm just starting on Web design and i think I'm doing fine.

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

          </html>

4 Answers

Christopher Warren
Christopher Warren
17,640 Points

This should fix it:

<!DOCTYPE html> 
<html>
  <head> 
    <meta charset="utf-8">
   </head>
    <body></body>
</html>

Hi Arnav!

Take a look at the line in which you declare your charset! There is an error on it. Other than that it looks like you are doing great, good luck!

-Luke

Samuel Allemang
Samuel Allemang
28,116 Points

Hi Arnav and Luke,

There's one other thing: the opening head element needs something...

-SCA

Indeed you are right! Didn't notice that, good job!

thanks guys! that really helped!

Thanks for your help again, Luke!

No problem Arnav!

Remember to mark the most useful answer so the other community members know your question has been answered.

oh! now I get it! Thanks, Christopher!