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

Hiza Mchaina
Hiza Mchaina
Courses Plus Student 2,455 Points

Challenge 3 of 4 is giving me problems showing that <head> </head> needs to be before <body> </body> and i already did i

It is telling me bummer the head needs to before the body.

When I submitted it it showed a miss communication

<!DOCTYPE html>
<title>Page Title</title>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>


3 Answers

Adam Beer
Adam Beer
11,313 Points

Hi Hiza! You put one thing in extra. Please delete it and your code is working. Hope this help.

Challenge Task 3 of 4

Write the opening and closing head and body elements between your <html> tags.

Max Senden
Max Senden
23,141 Points

Hi Hiza,

Your code is correct, but I think the error might be caused by having elements in there that the challenge did not ask for (e.g. you are using a title element, h1 and p). Remove those and your task should pass just fine.

Hope it helps, Max

Hiza Mchaina
Hiza Mchaina
Courses Plus Student 2,455 Points

thank you

The current code I written above went through