I am a beginner at html5. When I try to call the html5 shiv the page wont render in ie8. Only the background loads.
I am adding the following
<header>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"> </script><![endif]-->
<script>
document.createElement('header');
document.createElement('nav');
document.createElement('hgroup');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
</script>
css:
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
Please help!
document.createElement– shiv does it for you.inlinefor IE8, however they’re naturally block in the good browsers. Try to make them consistent and use the rules from Normalize CSS for example: