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

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>


<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.

<!DOCTYPE html>

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

2 Answers

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

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.