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

erika cecilia
erika cecilia
541 Points

I am putting the <p> tag in between the <body> and </body> tag but it keeps telling me to do that

I am putting the <p> tag in between the <body> and </body> tag but it keeps telling me to do that. what am I doing wrong?

index.html
<!--THIS IS THE STORY OF MY LEARNING JOURNEY
<!DOCTYPE HTML><HTML> 
<HEAD> </HEAD> 
<body> <p> </body>
</HTML>

1 Answer

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hi erika cecilia 👋

I notice two things in your snippet that you might want to have a look at. On the first line you're opening up a multiline comment but it's not being closed, because of this all HTML you've written ends up being commented out. While the tests in this challenge won't test for that, it's important to realize that in a real world setting none of your elements would be visible on the page 🙂

As for passing the test for this challenge, you'll want to make sure to add the text content and a closing tag for the paragraph element. Currently, there's only an opening <p> tag in the body, you'll want to give it the text content of "My first pararaph!" and then add a closing </p> tag.

Hope this helps to get you going again! 😁