Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Erica Woods
416 PointsIt keeps saying, a title element needs to appear between the <head> and </head> tags, which I have done. Why am I wrong?
my code: <!DOCTYPE html> <html> <head> <meta charset="utf-8" <title></title> </head> </html>
Isn't my tile in between the <head> and </head>? Why am I wrong?
<!DOCTYPE html>
<!DOCTYPE html>
<html></html>
<html>
<head></head>
<body></body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
</html>
3 Answers

Nick Yoho
6,957 PointsYou have too much extra code at the top
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
</html>

Erica Woods
416 PointsThank You! I'm new to this and didn't know I would have to delete the code after a new question. Thanks again!

Nick Yoho
6,957 PointsNo problem! It wasn't passing because it saw the <head></head> at the top first and read it as incorrect, it never had a chance to read the correct code at the bottom

Aliyah Watson
7,764 PointsYeah you only need the <!DOCTYPE html> and the <html> once, then after you put in all the other code (head, body, etc.) then you put the </html> closing tag. Hope that made it seem a bit less complicated.

Erica Woods
416 PointsThanks!