Avacay
Avacay

Reputation: 163

Element 'footer' cannot be nested witin element 'html'

Pretty simple question. Why does this error occur, and how do i correct it?

running visual studio express 2012 for web.

Thank you in advance

Upvotes: 1

Views: 1175

Answers (2)

BRBT
BRBT

Reputation: 1487

Your question is incredibly vague but I can tell you what you're doing wrong.

You probably have your <footer>tag outside of your <body> tag.

<!DOCTYPE HTML>

<html>
    <head>
    </head>

    <body>
    </body>

    <footer>
    </footer>

</html>

So you probably have something that looks similar to that, however it should look like this:

<!DOCTYPE HTML>

<html>
    <head>
    </head>

    <body>
        <footer>
        </footer>
    </body>
</html>

Upvotes: 0

Nived
Nived

Reputation: 1937

The <footer> tag should be within the <body> tag

Hope that helps.

Upvotes: 6

Related Questions