Page 1 of 1

My nav is undefined, even with my document type declared

Posted: 2014-03-27 18:44
by RDalmagro
My index page, fails to validate via xhtml 1.1 standards

I receive the validation error " Line 38, Column 6: element "nav" undefined "

Code: Select all

<div id="header">Leon's CS150 Assignment</div>
    <nav>   <!-- this is the line quoted in my error message -->
        <div>
            <a class="Menu-Item" href="#">Home</a>
            <a class="Menu-Item" href="about.html">About</a>
            <a class="Menu-Item" href="cv.html">CV</a>
            <a class="Menu-Item" href="../wordpress">Wordpress</a>
            <a class="Menu-Item" href="../webshop/catalog">Webshop</a>
        </div>
    </nav>
My nav is clearly defined in my CSS and has been fine until I tried to validate, does anybody know why this is happening? I've even declared the document type.

Thanks in advance.

Re: My nav is undefined, even with my document type declared

Posted: 2014-03-28 08:09
by botg
The error message is correct, there's no nav in XHTML 1.1

Re: My nav is undefined, even with my document type declared

Posted: 2014-04-03 13:13
by RDalmagro
Ok thanks in advance