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

example of html element that will serve as a document root?

html document root?

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

2 Answers

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi Josh,

I think you have skipped ahead a bit here.

I believe it's just asking you to write the html element.

<html>
</html>

Your code should look something like this:

<!DOCTYPE html>
<html>
</html>

Hope this helps

Think of the document like a family tree. With each node splitting into branches and then those branches split into another. The root is the parent of all parents, it's where the tree begins. So to answer your question look to the top of the page and you'll find the first element that contains everything else there. but remember this contains everything so you need a closing tag at the end of everything else.

eg

<html>
....... some other elements
</html>