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 HTML Introduction Global Structure: Part 2

Sean Flanagan
Sean Flanagan
33,235 Points

My Page is blank

Hi. Does anyone know why the page I created is blank please?

Here's the html:

<!doctype html>

<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>My Page</title>
        <body>
            <div>This is a divider.</div>
        </body>
    </head>
</html>

Thanks for any help you can offer.

Sean

3 Answers

Your closing </head> tag wraps the body as well. It should be:

<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>My Page</title>
    </head>
        <body>
            <div>This is a divider.</div>
        </body>
</html>

You should close your head tag before opening the body tag.

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Pedro. Hi Oisin. I checked my code and compared it with Nick's and you're both right; I stuck the closing head tag in the wrong place. Arrrgggh! Thanks for your help. :)