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

trying to place head and boy in the right places. How do these go?

How to put head and body to my code?

index.html
<!DOCTYPE
html>
<html>
  <head>
    <body>

  <h1>
  <h1/>
    </head>
      <body>
    </html>

You can mark the answer as best answer !

2 Answers

Hi Kilian, the basic structure of an html document looks like this :

<!DOCTYPE html>
<html>
    <head>
        <title>My Gear</title>
    </head>
    <body>
                <h1>My Gear</h1>
    </body>
</html>

Basically, you place head and body in the html tag and you usually put the content you wanna display in the body tag.

If that helped, mark as best answer to indicates other student your issue is resolved!

Thank you

Fran ADP
Fran ADP
6,304 Points

<!DOCTYPE html> <html> <head> </head> <body>

  </body>
</html>

you don't need h1