Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Internet Explorer 8 support HTML 5?

IE8 beta 2 supports two APIs from HTML5: cross-document messaging and non-SQL storage.

IE8 beta 2 doesn’t implement the HTML5 parsing algorithm or the new elements (no <canvas> or <video> support).

There are also bug fixes that align IE8 better with HTML5.


You can get HTML5 tags working in IE8 by including this JavaScript in the head.

<script type="text/javascript">
 document.createElement('header');
 document.createElement('nav');
 document.createElement('menu');
 document.createElement('section');
 document.createElement('article');
 document.createElement('aside');
 document.createElement('footer');
</script>

You can use this IE HTML5 shim script to gain a basic level of support for the new semantic elements in HTML5 such as <article>.


Modernizr is also a great option for giving IE HTML5 rendering capabilities.


Does it support

<!DOCTYPE html>

Yes it does.

Perhaps a better question is what modern web features IE8 supports. Some of the best places to answer that are caniuse.com, html5test.com, and browserscope.org.

HTML5 means a lot of different things to different people. These days, it means HTML, CSS, and JavaScript functionality. The term is becoming a bit "Web 2.0"-like.


Also are supported HTML5 hashchange event and ononline, offline event