views:

338

answers:

9

Does IE6 support any HTML5 elements?

<!DOCTYPE HTML>
<header>
<section>
<header>
<nav>
<canvas>
<video>
+13  A: 

It barely supports HTML4.... ha :)

No it doesn't without some fancy Javascript HTML5 emulating script type-of-thing.

Edit

Such as this one.

Marko
+3  A: 

The answer is no. =)

http://www.quirksmode.org/dom/html5.html

RPM1984
+6  A: 

It depends on what you mean by "HTML5 elements." In that most tags commonly used on the Web are included as part of HTML5, yes, it supports the vast majority of HTML5.

If you mean new elements introduced in HTML5 that had never been used before, no, it supports none of them, because HTML 4 was cutting-edge when IE6's HTML parser was created.

Chuck
You could still get away with using some of the elements for HTML5 layout, such as `header`, `footer` using this Javascript method. http://html5doctor.com/how-to-get-html5-working-in-ie-and-firefox-2/
Marko
+2  A: 

No it doesn't, but you can still use HTML 5 elements and style them using CSS by using Modernizr http://www.modernizr.com/

This will also add classes to the html element describing what functionality is available in the current browser.

Robin
+1  A: 

Ha ha yeah right. IE6 gives enough grief with HTML 4 as well as CSS, let alone HTML 5. Which is a shame if you are wanting to use HTML5 but have to make your website compatible with IE6 due to the client (where I work they often use IE5...I don't even want to go there).

Danae
Oh, my sympathies. Lemme guess, health care?
Jim Leonardo
Nope. Surprisingly an electrical components distributor. I know right. Well, the sub-manager I get my tasks from uses Mozilla. ;) And he let me install Google Chrome.
Danae
That's the grand secret in a lot of organizations I think. They think they're using IE5 or 6, but then you look at what people use, and it's FF or Chrome.
Jim Leonardo
A: 
http://html5test.com/

Check in 

FireFox
Chrome
Safari
IE
Yogesh
+1  A: 

No. Only because of the 15 character limit, let me add, if you want to use HTML 5 I would not recommend worrying about IE6 compatibility. The workarounds and hacks etc. you need to use to make things look the same on IE6 as they would on any modern browser are not worth the time.

The great thing about HTML+CSS is that it can degrade gracefully. Practice on that, and you can create a site that is wonderful on a modern browser, and on IE 6 looks nice, functions, and does not give the appearance of being "broken" or "missing" anything, even though it won't have the fancy stuff other people are seeing.

Andrew
+1  A: 

It does in the same way that all other versions of IE < 9 do, if you use the html5 shiv script. My site is in HTML5 and works fine in IE6, althoguh slightly differently. Sure if you turn off JavaScript it won't work, but if you're using IE6 and you have JavaScript turned off I'm afraid I'm not that worried about you as you're such a minority.

Ian Devlin
A: 

Short answer: no it doesn't.

Long answer: The design of HTML5 is specifically aimed at making backward compatibility as graceful as possible: they deliberately designed it so you can use new features with the minimum of breakage in browsers that don't support them. But that said, IE6 really doesn't support any of them, and even with that design philosophy, any site written to look good with modern standards is going to struggle in IE6. You can force IE6 to behave a bit better with a variety of hacks (I love CSS3Pie, for example, though that's a CSS hack rather than HTML), but at the end of the day you're always going to be fighting a losing battle if you need to support IE6 and modern browsers at the same time.

Spudley