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

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"

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

3 Answers

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 28,720 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>
<html>
   <head>
   </head>
   <body>
      <p>My first paragraph!</p>
   </body>
</html>

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

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

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 28,720 Points

Nelson,

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!