html5 new elements (header, nav, footer, ..) not working in IE
Internet Explorer 11 supports HTML5 and there shouldn't be any problem in YouTube.
Semantic Elements in HTML Many web sites contain HTML code like: <div id="nav"> <div class="header"> <div id="footer"> to indicate navigation, header, and footer.
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="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script> <![endif]-->
You need to use HTML5 Shim. Here is a detailed explanation as to why this is needed.
To use HTML5 Shim, you just need to add the following within your page's <head>
above all your CSS declarations:
<!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With