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 trialChristopher Sloan
5,571 PointsMay have technical issue
Task 3 of 6: Add a head and body elements to a page.
<!DOCTYPE html> <html></html> <head></head> <body></body>
Error: Don't forget to add a head tag.
2 Answers
Unsubscribed User
6,144 PointsYou need to add the <head>
element to the page and do the same with the body.
Ricardo Hill-Henry
38,442 PointsAn HTML document should at the bare minimal consist of this basic structure:
<!DOCTYPE html>
<html>
<head>
<!-- Where you add links to html sheets, scripts, and where you place the title tag that controls the text you see on a tab bar -->
</head>
<body>
<!-- Where you place content that will be presented by the browser -->
</body>
</html>
Don't forget that any tag that you open <html>, must be closed </html>; excluding a few exceptions in which you'll learn about as you continue your path in web development.