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

James Chi
James Chi
941 Points

I don't understand this question. Add the head and body

Help?

index.html
<!DOCTYPE html>
<html>
  <head> 
    <meta charset="utf-8">
    <body>
    </html>

3 Answers

You are close but you forgot to do one thing, and that is to close your tags. The HTML tag is correct but you need to close your head tag and close your body tag as well.

Hi James,

So task 1 was to add the doctype, which you've got. Then task 2 was to add the html elements, which you've done by adding the opening and closing html tags. Now the next step is to add the head and body elements. So what you need to do is to use the opening and closing head and body tags. Currently you've got the opening tags but you are missing the closing ones.

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
  </body>
</html>
JULIUS DANILEVICIUS
JULIUS DANILEVICIUS
4,626 Points
<!doctype html>
<html>
<head>

 <title>Page</title>
 <meta charset="utf-8">

</head>

<body>

 <h1>About me</h1>

<p>I am very kindless</p>

</body>
</html>