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 Introduction to HTML and CSS (2016) 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

Hi Gerald,

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

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.