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

Anna Takang Nchongarrey-Oben
Anna Takang Nchongarrey-Oben
7,365 Points

Question not understood: Create the HTML element that will serve as the document root

Create the HTML element that will serve as the document root

index.html
<!DOCTYPE html>

4 Answers

Pierre-Antoine Nicolay
Pierre-Antoine Nicolay
5,104 Points

You're true. This is the doctype element. Isn't it ?

Im confused too

Im confused too

Pierre-Antoine Nicolay
Pierre-Antoine Nicolay
5,104 Points

Ok, I was wrong. The html element is the root of the document :

<html> your page </html>

The doctype it is an other thing, it defines the DTD : https://en.wikipedia.org/wiki/Document_type_definition