How to make HTML5 work in Internet Explorer: IE6, IE7, IE8

March 28th, 2011 admin Posted in development, html | No Comments »

Having played with the html5 elements I came across a problem - they will be ignored by older IE browsers. So you won't be able to style html5 page that contains lines of code like this:

 
<header>This is header</header>
 

IEs will display the text as if it would be outside the "header" tag. The solution I've found is to fix it using javascript:

 
<!--[if lt IE 9]>

 
  <script type="text/javascript">
    document.createElement('header');
  </script>
 
<![endif]-->
 

How to apply the fix to the other html5 elements you can find right here

But how to fix that if the user have javascript disabled? - This is the question.

Leave a Reply

You must be logged in to post a comment.