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

what paragraph do I need to put between the <body> and </body> tags?

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

<!DOCTYPE html>
<!--my first paragraph--><p><body></body>

3 Answers

Jeff Muday
Jeff Muday
Treehouse Moderator 27,586 Points

The point they are trying to test is whether you understand the major tag elements of a page, the opening and closing tags, element tags, and nesting.

In this case, the paragraph tags are nested in the body (means they are in-between <body> and </body>), and the paragraph contents are nested between paragraph tags.

Similar to below.

<!DOCTYPE html>
      <p>My first paragraph!</p>

so do I still put down My first paragraph! in it?

<p>My first paragraph!</p><body></body>

Jeff Muday
Jeff Muday
Treehouse Moderator 27,586 Points


Put the paragraph between the body tags. The example I posted earlier in this thread contains a possible solution to the challenge. In reality, all the tags can be on the same line and it is still correct, but by convention, designers will split and indent for readability.

<body><p>My first paragraph!</p></body>

Good luck with HTML it is a great first step to becoming a designer!