HTML5 in IE8 and IE7


We are seeing more and more use of HTML5, however, it is being held back largely due to the use of Internet Explorer 8. IE8 will be with us for some time because it works on Windows XP and IE9+ require at least Windows Vista.

Well, I've stumbled over some code that creates most HTML5 tags correctly in IE7 and IE8 through JavaScript.

The script is very easy to use. Just put something like the below in the head portion of your code.

<!--[if lt IE 9]>
<script src="//">
<style type="text/css">
abbr, article, aside, audio, bdi, canvas, data, datalist, details, figcaption, figure, footer, header, hgroup, mark, meter, nav, output, progress, section, summary, time, video {
 display: block;

After you put this in the code you can use these tags and for the most part they should work correctly (a few still may have problems, so you will need to test your page in IE7 or IE8).

You can get the code here. here.

Prior to IE 9, HTML 5 canvas is unsupported, too, but you can use ExplorerCanvas ( for this as well.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <div> <blockquote> <object> <embed> <img> <param>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.