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 Introduction to HTML and CSS Adding a New Web Page Test: Write and Style an Element

I have no clue

What should I put

index.html
<!doctype html>
<html lang="utf-8">
  <title>document</title>
  </head>
<body>

</body>
</html>

3 Answers

joelearner
joelearner
54,899 Points

Hi Gerald,

It appears you're missing the opening <head> tag. Try putting that in and see if it works.

Tony Brackins
Tony Brackins
26,489 Points

Hey Gerald ESPARZA don't sweat it. Been programming about 5 years. i usually just google "doctype html" and copy/paste it in.

I tried that and nothing that made sense

www.example.com

Go there, view page source. That is your basic site structure. :) Enjoy.

You have a couple of errors here. I'm not sure what context you need this in, but if you are doing anything early in the Treehouse courses you will not need any UTF-8 declarations. If you must, they go inside of the head, and are placed in the meta tags, which you will learn about soon enough...but are not key to you at this point in general.

<!doctype html>

 //This opening tag was missing
  <head> 

  <title>document</title>

//this is where utf-8 would go, as a value to a charset attribute. But this could be left out.
 <meta charset="utf-8" />

  </head>
<body>

</body>
</html>

//you can delete my comments and whitespace that is left behind if you wish.
'''
<!doctype html>

  <head> 

     <title>Document</title>

  </head>

  <body>

  </body>
</html>

Just to give you something easier to read. This should satisfy the answer for what you are trying to do.