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

CONFUSED!

i really dont understand what im doing wrong in this challenge

3 Answers

Coco Jackowski
Coco Jackowski
12,914 Points

Can you provide a code sample?

My Question Is : Create the HTML element that will serve as the document root.

Hi Alexia,

Since you are so new to this let's just get you doing.

Jeff

<!DOCTYPE html>
<html>
</html>
Coco Jackowski
Coco Jackowski
12,914 Points

There is a certain HTML element that is the "root" of the rest of the page. This means that all other elements are children of it. HTML elements have a hierarchy; they are nested within each other.

So, in this example, the <ul>element is the parent of the <li> elements, which are its children:

<ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
<ul>

The "root" HTML element is the one that's farthest up in the hierarchy; that is, all the other elements descend from it. Your challenge in this question is to create that certain element. You can find it by rewatching the video if it's slipped from your memory. Good luck!