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

Maryanne Gray
PLUS
Maryanne Gray
Courses Plus Student 290 Points

Head and Body tags

can someone tell me what is wrong with this?

<!DOCTYPE html>
<html></html>
<HEAD>
  <meta> charset="utf-8">
  <title>mab designer</title>
</HEAD>
  <body>





</body>

5 Answers

Hello Maryanne,

Your code is not well designed. It should look something like this :

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

Peace,

Nam

Shoot, you beat me to it! :-)

David Trejo
David Trejo
19,914 Points

Your html closing tag </html> has to come after the body closing tag </body>.

Howdy Maryanne Gray,

The <html> tag needs to wrap all the content on the page, and the <head> tag should be lowercase. It should look like:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>mab designer</title>
  </head>
  <body>
    <!-- :zap: INSERT SCIENCE HERE :zap: -->
 </body>
</html>

Your <html>tag should embrace all the other tags except the doctype.

Also, you closed the meta tag before the end of it :

<meta charset="utf-8">
Wayne Priestley
Wayne Priestley
19,579 Points

Hi Maryanne,

Just a simple typo, you have closed your <meta> tag too early and move your html to the bottom and things will be tiketiboo…

:)