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

I can't understand my mistake

Hi , I have a problem I can not see where is my mistake because my paragraph is between <body> and </body>.

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> <p> "My first paragraph!" </p> </body>
 </html>  

2 Answers

Andreas Frost Nordstrøm-Hansen
Andreas Frost Nordstrøm-Hansen
2,441 Points

Hi Antonia.

might be the way you wrote the "" around your text inside the <p> or could be you need to add a space between the <!--and the text. Because it looks like it takes that as a html statement. Maybe remove it entirely would prob pass then.

this code works.

<!DOCTYPE html>

<html>


 <head>

  </head>



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



</html>
Seth Kroger
Seth Kroger
56,402 Points

You've done a good job; the checker just has a small problem. It's the first line at the top, the HTML comment. Even though it is normally ignored it's causing issues with the challenge checker. Probably because there are p tags inside the comment.

I've checked your answer, and it will pass as long as the first line is removed.