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

Need help

Stuck

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

5 Answers

Steven Parker
Steven Parker
231,268 Points

The instructions for task 3 say "Write the opening and closing head and body elements between your <html> tags.", but it looks like you only added the closing tags. And you somehow got an extra <html> in there too.

So what you'd add for this task might look like this:

  <head></head>
  <body></body>
Asaad Khattab
Asaad Khattab
38,121 Points

Yeah. I wrote the answers for Tasks 3 and 4 because I wanted to go the extra mile! I hope you are not upset with me because I answered her after you had done so. I just wanted to make it all clear writing.

<!DOCTYPE HTML>
<html>
  <head>
  </head>
  <body>

  </body>
</html>

than

<head></head>
<body></body>
Steven Parker
Steven Parker
231,268 Points

I think most students have a better learning experience by solving the answer themselves with a few hints vs. seeing the complete answer. But learning styles can vary so we can see which style Aliah Scroggins prefers based on which is chosen as "best answer".

Asaad Khattab
Asaad Khattab
38,121 Points
<!DOCTYPE HTML>
<html>
  <head>
  </head>
  <body>
     <p>My first paragraph!</p>
  </body>
</html>
Steven Parker
Steven Parker
231,268 Points

:warning: FYI: According to a moderator, explicit answers without any explanation are strongly discouraged by Treehouse.

Asaad Khattab
Asaad Khattab
38,121 Points

Oh no! Thank you, Steven, for making me aware of it... I'll go back and read the code of conduct.

Steven Parker
Steven Parker
231,268 Points

I don't think it's in there, but in the post I linked to the answer was redacted by the moderator with a comment. Besides, Aliah is only asking for help with task 3 and what you posted answers task 4.

Asaad Khattab
Asaad Khattab
38,121 Points

Steven, I agree! I finally see your point of view. Well, It's been posted for like 7 hours now. From the looks of it, despite our correct answers, it seems that neither your or I will be getting "Best Answer" :) Best regards,

Steven Parker
Steven Parker
231,268 Points

Be patient, not everyone studies all day, and some students are in parts of the world where most people are sleeping. :wink: