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

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,443 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,413 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.