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

Fahr Kamal
PLUS
Fahr Kamal
Courses Plus Student 352 Points

What does it mean by creating the HTML to serve as the document root? I have copied the example and it does not work.

Please help

index.html
<!DOCTYPE html>
<html>
  <meta charset="utf-8">
<h1>Fahr Kamal</h1>

1 Answer

Reyam Marcos
PLUS
Reyam Marcos
Courses Plus Student 10,367 Points

it means that you should create a html element to be the root of your file, you already created the <html> you just have to end it at the bottom of your file </html>

<!DOCTYPE html>
<html>
  <meta charset="utf-8">
 <h1>Fahr Kamal</h1>
</html>

Moderator Edit: Moved response from Comments section to Answers.