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

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
14,588 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!