ASP.net 2010 Error "Validation (HTML5): Element 'nav' cannot be be nested within element 'html'"

Hi

I am trying to learn a bit of html5. I created a new ASP.net web application the I changed the Text validation in
Tools/Options/Text Editor/HTML from "XHTML 1.0 Transitional" to "HTML5".
I get the following error in the mark up further down. Have I set this up wrong? I realise that I am shooting in the dark a bit here.

Error: "Validation (HTML5): Element 'nav' cannot be be nested within element 'html'"

My page's mark up code:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="HTML5._Default" %>

<!DOCTYPE html>
<html lang="en">  
  <head>    
    <meta charset="utf-8">    
    <title>My Title</title>  
  </head>  
  <nav>
  <ul>
    <li><a href="Default.aspx">Home</a></li>
    <li><a href="Webform1.aspx">Page 1</a></li>
    <li><a href="Webform2.aspx">Page 2</a></li>
  </ul>
</nav>
  <body>

         <!--shorten the link if you are not changing servers-->
     <a href="Webform1.aspx">Page 1</a>

  </body>
</html>
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lokesh B RDeveloperCommented:
Hi,

You need this update - Web Standards Update for Visual Studio 2010 SP1

Check the below links for HTML5 elements support on VS 2010

http://blogs.msdn.com/b/webdev/archive/2011/06/15/web-standards-update-for-visual-studio-2010-sp1.aspx?PageIndex=2

https://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Carl TawnSystems and Integration DeveloperCommented:
The nav element is valid, but it still needs to live inside the body element, rather than outside it like you currently have it.
0
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.