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 Treehouse Club: HTML Publish a Story HTML Structure

sandro costanza
sandro costanza
1,142 Points

I don't know where to put the Html tag . Please show me

I understand html does not go before or after DOCTYPE . How do you start a new line

index.html
 <!DOCTYPE html>                                                                                                                                             

3 Answers

Erik S.
Erik S.
9,789 Points

HTML tags look like this:

<html>
</html>

All your code goes in between. Hope this helps.

A full HTML doc looks like this:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Your Documents Title</title>
</head>
<body>
    All of your HTML code will go here
</body>
</html>
John Moya
John Moya
17,963 Points
The first tag of any document must be the DOCTYPE 
which means Document Type 
so the parser knows how to parse and tokenize 
<!DOCTYPE html>
You should begin open a Html tag because 
you are beginning to write html code remember to close the tag and write any other tags between the delimiters 
<html>
Write html here
</html>