Internet Explorer not Supporting HTML5? Fix It Now Just in a Minute

Internet Explorer not Supporting HTML5? Fix It Now Just in a minute

Internet Explorer as usual gives unique problems as respect to the other browsers. The same is the case with HTML5 not supported by Internet Explorer. But every problem has some solution. HTML5 gives a solution to cope with this type of problem. You need just to add a script in the <head> of your HTML5 document. Thankfully, Sjoerd Visscher created the "HTML5 Enabling JavaScript", "the shiv":
<!--[if lt IE 9]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

The Complete Shiv Solution

Example

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

</head>
<body>

<h1>My First Article</h1>

<article>
London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.
</article>

</body>
</html>
You May Also Like: What is New in HTML5?
أحدث أقدم