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 trialJustin Nuckols
1,264 PointsWhat is the document root?
Also, what does it mean to "define" the document root?
2 Answers
Sergey Podgornyy
20,660 Points-
<html>
is the root node +<html>
has no parents -
<html>
is the parent of<head>
and<body>
+<head>
is the first child of<html>
+<body>
is the last child of<html>
Justin Nuckols
1,264 PointsThanks! That is helpful.
Sergey Podgornyy
20,660 PointsYou are welcome ;)
Sergey Podgornyy
20,660 PointsSergey Podgornyy
20,660 PointsHere is how correct DOM structure looks like: