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 can I put a paragraph inside the body element?

Trying to put a paragraph in between the <body></body> element.

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

1 Answer

Hi Jamie,

You are basically there!

Try simplifying your code and only include the necessary parts. Here, you don't need a paragraph within the head tag. Also, once you write the code for the body tag, you don't have to repeat that code. So your code should look something like this:

<! DOCTYPE html>
<html>
  <head>

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

  </body>
</html>

Cheers!

Hey, thank you so much. It seem so obvious once you broke it down for me.