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

Jamie Shields
Jamie Shields
1,015 Points

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

joelearner
joelearner
54,670 Points

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!

Jamie Shields
Jamie Shields
1,015 Points

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