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

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