Use Chrome Frame to Render HTML5 in Internet Explorer

Sad but true: The browser with the largest market share — Internet Explorer (IE) — has the least support for HTML5 standards. So how do you let all those people using IE view your HTML5 web pages?

The answer lies with Google Chrome Frame. Chrome Frame is a special tool that embeds the Chrome rendering engine inside IE. To use it, put the following code in your page:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>ChromeFrame.html</title>
    <meta charset="UTF-8">
  <script type="text/javascript" 
          src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
</head>
<body onload = "CFInstall.check()">
</body>
</html>

Write the rest of your code assuming the user has Chrome (which has excellent support for HTML5). This is the best way to use HTML5 in IE until Microsoft decides to add meaningful support to HTML5.

blog comments powered by Disqus
Advertisement

Inside Dummies.com