html5shiv

Hello Friends

Every browser does not support the all tag and blocks of HTML5, like IE. So, if you add simple code before body tag, then your code will be support all the browser.

———————————————————————————————-

Public repo for the latest HTML5 JavaScript shiv for IE to recognise and style the HTML5 elements.
Full original, uncompressed source available here: https://github.com/aFarkas/html5shiv
Source code adds new HTML5 elements (which is simple code), but also supports printing HTML5 elements and includes the default styles for HTML5 elements, like block on article and section.
Getting it to work in the browser was easy, @jon_neal and afarkas made IE actually print HTML5 elements - these guys are to take all the credit. Please take a moment to thank them!
To use this script, it must be included before the <body> element (i.e. in the <head>) but doesn't matter if it appears before or after the CSS - but for the sake of performance, it would make better sense to include the CSS first then this script.
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Note that the protocol has been removed so you don't have to when including on an http or https page

———————————————————————————————-

This article is borrowed from this link – http://code.google.com/p/html5shiv/

 

Thanks for reading.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s