Question

I've found this tutorial, that uses a <nav> tag. the demo works well even on IE7. and yet, w3cshools mention that this tag is NOT supported on IE8 and below .

So, what's the truth and should I keep this nav tag, or change it to a div? (would it ruin anything?)

No correct solution

OTHER TIPS

You need to include the HTML5 shiv script in order to allow styling of HTML5 elements in older IE browsers: http://code.google.com/p/html5shiv/

To use, include the following script in your element above your CSS:

<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

See -> html5 new elements (header, nav, footer, ..) not working in IE

Another option is to use Modernizr, which includes the HTML5 Shiv and also provides HTML5 feature detection.

Sure you can use div instead but the point of using nav is to get rid of a div.

Don't waste your time trying to get HTML5 to work in old browsers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top