Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,291 Points

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

  </body>
</html>

you don't need h1