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

Challenge Question 4 "Inside your body element, put in paragraph that says, "My first paragraph!"

I have been tinkering with the possibility of:

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

and/or

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

I am getting the correct results in the editor, but the answer is not acceptable for this particular question.

index.html
<!DOCTYPE html>
<html></html>
<html><head></head><body></body></html>

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

2 Answers

Dan Weru
Dan Weru
47,649 Points
<!DOCTYPE html>
<html>
   <head></head>
   <body>
     <p>"My first paragraph!"</p>
   </body>
</html>

If that doesn't work, try to remove the double quotes enclosing the paragraph's text.

Challenge 1-4 (Each code is a continuation of the next)

  1. <!DOCTYPE html>

  2. <html></html>

  3. <html><head></head><body></body></html>

  4. <body></body> (this is where I received the message to add a <p> between <body></body>

So, Ive been trying <body><p>My first paragraph</body> (I haven't receive the correct answer yet.

After restarting the challenge entirely. I have to the conclusion that the question can be answered correctly, despite were you place the code. <html> and </htm> should not be set together like: <html></html> Yet, this is considered to be the correct answer. Which is why their is so much confusion, when you try to add on to code. Nothing is in the right place. Thank you so much for your assistance.