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 trialChris Aaron
Courses Plus Student 1,254 PointsWhat is a head tag?
I thought I knew what the head and body elements are. I am new and obviously do not. I added the head and body elements but it is wrong because it is telling me to not forget about the head tag. Please help. Thanks
1 Answer
Chris Dziewa
17,781 PointsThe head tag is where important browser information is located i.e. the title of the page, the type of character encoding, etc. The body is where the content of your page is located.
The majority of html elements have an open and closing tag. This is the standard setup of an html5 document:
<!DOCTYPE html>
<html>
<head>
<title>I'm the site title</title>
</head>
<body>
</body>
</html>