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

Need help

Stuck

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

5 Answers

Steven Parker
Steven Parker
212,260 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>

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
212,260 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".

<!DOCTYPE HTML>
<html>
  <head>
  </head>
  <body>
     <p>My first paragraph!</p>
  </body>
</html>
Steven Parker
Steven Parker
212,260 Points

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

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
212,260 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.

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
212,260 Points

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