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 trial

HTML How to Make a Website HTML First Use HTML Elements

I think I'm submitting the right thing, but it doesn't like it.

I'm submitting this: <!doctype html> <html> <head> <meta charset="utf-8"> <meta title="Why doesn't this work?"> </head> <body> </body> </html>

but it still says I need to put a title on my page. It's not giving me any explanation of what it is finding wrong.

2 Answers

Sean Perryman
Sean Perryman
13,810 Points

You have done well, a doctype is a necessary piece of an HTML page. What you are missing is this:

<!DOCTYPE html>
<html>
  <head>
    <title>Page Title Goes Here</title>
  </head>
Sean Perryman
Sean Perryman
13,810 Points

Just as a point of reference, every standard HTML page I write starts with this template:

<!DOCTYPE html>
<html>
  <head>
    <title>Page Title Goes Here</title>
  </head>
  <body>
    Body content goes here
  </body>
</html>

Thanks Sean, the whole html I wrote didn't copy right. Here it is: '''html <!doctype html> <html> <head> <meta charset="utf-8"> <meta title="Title"> </head> <body> </body> </html> ''' So it looks like they were looking for a <title> instead of the meta title.

thanks!

HA! nevermind. it still didn't paste right. thanks