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

Mitchell Cohen
Mitchell Cohen
1,451 Points

Bummer! Your paragraph needs to go between the <body></body> tags.

why is it saying: Bummer! Your paragraph needs to go between the <body></body> tags.

when my paragraph is in fact between the body tags?

index.html
<!--This is my story, but you should insert your own story below. Use the <p> tag to start a new paragraph and </p> at the end of each paragraph.-->
<!DOCTYPE html>
<html>
<head>
  </head>

<body>
  <h1>Peg Leg</h1>
    <h2>By Mitchell Cohen</h2>

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


  </html>

2 Answers

Gennaro Turco
Gennaro Turco
2,557 Points

Maybe what the exercise is asking it's just to write the paragraph inside the body and not the <h1> and <h2>

<!DOCTYPE html>
<html>
  <head>
    </head>
  <body>
    <p>My first paragraph</p>
  </body>
</html>
Jason Anders
Jason Anders
Treehouse Moderator 145,631 Points

Moderator Edited Response: Moved from the Comment Section to Answers so it may be upvoted and/or marked as Best Answer.

That is correct. The challenge never asked for any header tags. When you add something that the challenge didn't ask for, you will receive a Bummer! because the code checker is looking for very specific things. Remember, code challenges are going to be very specific and very picky. :)

Keep coding! :dizzy:

Try to remove the <h1> and <h2>

Moderator Edited Response: Moved from the Comment Section to Answers so it may be upvoted and/or marked as Best Answer.