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

how do I put my paragraph between the <body> and </body> tags

Inside your body element, put in a paragraph that says, "My first paragraph!"

index.html
<!DOCTYPE html>
<html></html>
<head></head><body></body><html></html>
<p></p>My first paragraph!<body></body>

1 Answer

Armin Kadic
Armin Kadic
16,242 Points

There is a couple of things wrong with your setup. You only need one pair of elements each, that means one html element, one head, body, and p. What they ask you to do is put the <p>My first paragraph</p> inside the body tag, that means between the opening body tag <body> and the closing body tag </body>. Now, the head tag should go above the body element like you did, but the body and the head tag need to go between the html tag, like this.

<html>

<head></head>

<body> Here goes the p tag </body>

</html>

Ps. This course you are doing right now is retiring soon, you should start with the updated one. Here is the link:

https://teamtreehouse.com/library/introduction-to-html-and-css

Good luck!