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 trialBrad Winslow
306 PointsWhat do you mean by document root?
the tasks asks to create an element to serve as a document root. Not sure where you want me to go with this
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"></meta>
<title> Brad Winslow | Programmer</title>
</head>
<body>
<header>
<h1>Brad Winslow</h1>
<h2>Programer</h2>
</header>
<section>
<P> Gallery will go here.</P>
</section>
<footer>
<p>© 2014 Brad Winslow</p>
</footer>
</body>
</html>
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHey Brad,
I'm not sure where all that code came from. For the challenge that you are linked from, the 1st part asks you to: "Write an HTML doctype." This goes at the very top of every HTML document.
<!doctype HTML>
The second task asks you to "Create the HTML element that will serve as the document root." This is the opening and closing <html> tags. Everything else will always go between them, so the html element serves as the root. So for task 2 of the challenge, you should only have
<!doctype HTML>
<html>
</html>
Hope that helps. Keep Coding! :)