The Shiv

You could use the "my hero" solution described on the previous webpage, for all new HTML5 elements, but there is a problem with Internet Explorer 8 and earlier, which do not allow styling of unknown elements. Then along came Sjoerd Visscher, who created an "HTML5-Enabling JavaScript", which is called "the shiv":

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

The code is just a comment, but versions previous to IE9 will read it (and understand it). "The Shiv"? As in created in prison?

Back button Table of Contents Next button