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

Arum Mohee
Arum Mohee
1,288 Points

Im stuck on a question and it asks "Create the HTML element that will serve as the document root." which element is it?

Please help!

index.html
<!DOCTYPE html>
<header></header>

3 Answers

I believe they are referring to the html element that wraps all other html tags after the DOCTYPE declaration. ie.

<!DOCTYPE html>
<html>
<head></head>
<body></body>
</html>
Tushar Singh
PLUS
Tushar Singh
Courses Plus Student 8,692 Points

Whenever you are stuck, follow this methodology.

1) check for typo errors and silly mistakes(90% of you problems are solved)

2) Go through the videos again(now 98% solved)

3) Google it(ahaa! 99%)

4) Forum, 100%!!

Hi Arum,

Sorry I did not get back to your answer request for a number of days!

As Eric has said above, the document root is the HTML element.

Something that I have been working on that may help you at times through this course can be found on github.com, it is a helper example of all the code that is used to build the site as well and a working example.

Code to refer to

Example site to look at

Check out the code explained page for details on all the HTML elements used in the project and a link to the w3schools page for further info!

Craig

Arum Mohee
Arum Mohee
1,288 Points

No worries at least you are there to help me thanks anyway.