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 trialLaura Cartner
542 PointsMy 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?
<!DOCTYPE html>
<html><h1></h1><body></body> </html>
2 Answers
jcorum
71,830 PointsYou 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
542 PointsThank you so much. I'll go and correct it now. Your answer was very rapid.
Sean Michaelson
7,278 PointsSean Michaelson
7,278 PointsHi, try removing the h1 elements and replacing them with the head element.
Sean