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

document root

what does it mean to define the document root?

2 Answers

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

The document root is the folder on your host or local server that holds the files for your website.

Is that really what you are asking or did you maybe mean to ask how do you define the document type? Where does this question come from? Is this related to the code challenge: Use HTML Elements? If so can you actually post the question?

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

I looked at the code challenge and I assume that you are referring to the second task: Create the HTML element that will serve as the document root.

The short answer is: the html element can be called the root or root element of the document and it is defined by the html tags.

<html>
</html>

I guess, you can think of it as a root because if you make a flowchart you would put that element at the top as a starting point and alle the other elements would "branch" out from there.

Similar to the root folder on your server it "contains" the information/building blocks of your site.

Does that help?