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

[SOLVED] ,write the opening and closing head and body elements between your <html> tags?

This is what I did, and it's still giving me an error saying "your head tag must come before your <body> tag"...but it is...am I doing something wrong?

<!DOCTYPE html>
<html>
 <head>
   <body>


     </head>

   </body>

</html>

2 Answers

It should look like this :

<!DOCTYPE html>
 <html>
   <head>

   </head>
     <body>




   </body>
</html>

Hope this helps!

thank you

I know what I did wrong... <head> </head> <body> </body>

start head then close it right underneath. Oops!