How to use HTML5 in Internet Explorer 6 and 7

As you know Internet Explorer version 6 and 7 doesn't support HTML5 tags. In this tutorial I will explain to you how you can use HTML5 tags in Internet Explorer 6 and 7.

So, you can create your website in HTML5 language and to make it compatible with Internet Explorer 6 and 7 you must add this code:

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

and

<script language="javascript">
document.createElement('header');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('nav');
document.createElement('footer');
</script>

between <head> and </head> tags.

Then, your website will be compatible with Internet Explorer 6 and 7.









Leave a Comment