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.

HTML How to Make a Website HTML First Use HTML Elements

Herschel Greenspan
Herschel Greenspan
890 Points

Where did i go wrong in the making of this Program? How should it look when typed correctly?

Im having difficulty knowing where to place the title headers.

index.html
<!doctype html>
<html> <head> <meta charset="utf-8"> <title> Hershey Greenspan | Desighner </title> </head>  
<body> </body> </html>

2 Answers

Jeff Lemay
Jeff Lemay
14,266 Points

Your code looks correct except DOCTYPE should be all capitalized.

Herschel Greenspan
Herschel Greenspan
890 Points

But everytime i try to submit my answer this error message pops up.

Bummer! A title element needs to appear between the <head> and </head> tags

Jeff Lemay
Jeff Lemay
14,266 Points

Oh, okay. It seems to be a problem with your formatting (you have html, head, meta, and title tags all on the same line). I was able to pass with your code when everything is put on its own line:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title> Hershey Greenspan | Desighner </title>
  </head>
  <body>
  </body>
</html>