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

Laura Cartner
Laura Cartner
542 Points

My answer looks right

The task is to put the head tag and the body tags between the html tags. I have done this but the program keeps telling me to put the head and body tags between the html tags. What am I doing wrong?

index.html
<!DOCTYPE html>
<html><h1></h1><body></body> </html>

Hi, try removing the h1 elements and replacing them with the head element.

Sean

2 Answers

You don't want to have the h1 tag outside the body tag. It needs to be inside the body tag:

<!DOCTYPE html>
<html>
<body>
<h1></h1>
</body>
</html>
Laura Cartner
Laura Cartner
542 Points

Thank you so much. I'll go and correct it now. Your answer was very rapid.