Does Internet Explorer 8 support HTML 5?

Internet ExplorerInternet Explorer-8Html

Internet Explorer Problem Overview


Is there any HTML5 support in IE8? Is it on the IE8 roadmap?

Internet Explorer Solutions


Solution 1 - Internet Explorer

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.

Solution 2 - Internet Explorer

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>

Solution 3 - Internet Explorer

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>.

Solution 4 - Internet Explorer

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

Solution 5 - Internet Explorer

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.

Solution 6 - Internet Explorer

Solution 7 - Internet Explorer

IE8's HTML5 support is limited, but Internet Explorer 9 has just been released and has strong support for the new emerging HTML5 technologies.

Solution 8 - Internet Explorer

HTML5 is still in draft spec (and will be for a loooong time). Why bother?

Solution 9 - Internet Explorer

Check out the caniuse guide for all HTML 5 features across all browsers and versions, including future versions.

Solution 10 - Internet Explorer

You can use this to make IE8 understand/support basic HTML5 tags.

<!--[if lt IE 9 ]> 
	<script type="text/javascript">
		var html5Elem = ['header', 'nav', 'menu', 'section', 'article', 'aside', 'footer'];
		for (var i = 0; i < html5Elem.length; i++){
			document.createElement(html5Elem[i]);
		}
	</script>
<![endif]-->

Solution 11 - Internet Explorer

According to http://msdn.microsoft.com/en-us/library/cc288472(VS.85).aspx#html, IE8 will have "strong" HTML 5 support. I haven't seen anything discussing exactly what "strong support" entails, but I can say that yes, some HTML5 stuff is going to make it into IE8.

Solution 12 - Internet Explorer

You can read more about IE8 and HTML 5 support here:

http://blogs.msdn.com/giorgio/archive/2009/11/29/ie8-and-html-5.aspx

Solution 13 - Internet Explorer

Some of the other answers here are about adding HTML5 capabilities to IE8 and other browsers. These are called Polyfills and my favourite place for finding those is here.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBuddyJoeView Question on Stackoverflow
Solution 1 - Internet ExplorerhsivonenView Answer on Stackoverflow
Solution 2 - Internet ExplorergokerView Answer on Stackoverflow
Solution 3 - Internet ExplorerJohnView Answer on Stackoverflow
Solution 4 - Internet ExplorerSimonView Answer on Stackoverflow
Solution 5 - Internet ExplorerJustinView Answer on Stackoverflow
Solution 6 - Internet ExplorerMartin HassmanView Answer on Stackoverflow
Solution 7 - Internet ExplorerAnonymousView Answer on Stackoverflow
Solution 8 - Internet ExplorerAaronView Answer on Stackoverflow
Solution 9 - Internet ExplorerdpanView Answer on Stackoverflow
Solution 10 - Internet ExplorerAlfonseView Answer on Stackoverflow
Solution 11 - Internet ExplorerMarcView Answer on Stackoverflow
Solution 12 - Internet ExplorerGiorgio SardoView Answer on Stackoverflow
Solution 13 - Internet ExplorerJustinView Answer on Stackoverflow