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

How do I? Make sure you define the HTML tag for the document root.

Lost on this simple beginner task. Help Please

index.html
<!DOCTYPE html>
  <html>
    <head>
      <meta Charset="utf-8>

2 Answers

Aaron Lafleur
Aaron Lafleur
10,474 Points
<!DOCTYPE html>
  <html>
    <head>
      <meta charset="utf-8">
</head>
</html>

Your document root tags are the <html></html> tags.

Isaac Asante
Isaac Asante
4,752 Points

The HTML element should embody your entire code (apart from <!DOCTYPE html>). So it would be like this:

<!DOCTYPE>
<html>
<!-- All your code should be here -->
</html>

At the end of the challenge, your code should be like this:

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