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

juliechao
seal-mask
.a{fill-rule:evenodd;}techdegree
juliechao
Full Stack JavaScript Techdegree Student 1,787 Points

<!doctype html> <html> <head> <body> </body> </head> </html>

why is the system keep giving me an error message? I cann't proceed with the lesson. It's so annoying.

index.html
<!doctype html>
<html>
  <head>
    <body>
    </body>
  </head>
</html>

3 Answers

Christopher De Lette
PLUS
Christopher De Lette
Courses Plus Student 7,139 Points

Hi Julie,

The basic structure of your HTML template is bit out of sequence. The body and head closing tags need to be adjusted. Template starts with doctype as you have it, then opening and closing head tags, followed by opening and closing body tags. The last closing tag should be the HTML tag. Hope this helps.

Take care and happy coding! ?

your body tags should be outside your <head></head> tags not inside like this

<!doctype html>
<html>
  <head>
  </head>
  <body>
  </body>
</html>

remember that the body tags is what holds the visual content of your site