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

Kaleb Brown
Kaleb Brown
305 Points

I am stuck on this question Create the HTML element that will serve as the document root.

What is it asking for I put the meta charset but i guess that is incorrect

index.html
<!DOCTYPE html>
<p>&copy;2017 Kaleb Brown.<p>

2 Answers

Christopher Debove
PLUS
Christopher Debove
Courses Plus Student 18,373 Points

The first step is to write a doctype:

<!DOCTYPE html>

The second is to write the "root" element of a page

<!DOCTYPE html>
<html>

</html>

And so on, there is 6 steps ;)

Christopher Debove
PLUS
Christopher Debove
Courses Plus Student 18,373 Points

Information: The root element of any HTML page is the "html" tag.

The task is not to write content, but to set the structure of the document. When it's not asked to write content, it's better to not do it (on challenges) because it can lead to a bummer when your structure is good.

Kaleb Brown
Kaleb Brown
305 Points

Got it, thanks! <html> <!DOCTYPE html> </html>