Does IE6 support any HTML5 elements?

2019-04-29 17:23发布

Does IE6 support any HTML5 elements?

<!DOCTYPE HTML>
<header>
<section>
<header>
<nav>
<canvas>
<video>

9条回答
一夜七次
2楼-- · 2019-04-29 17:31

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.

查看更多
相关推荐>>
3楼-- · 2019-04-29 17:45

It barely supports HTML4.... ha :)

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

Edit

Such as this one.

查看更多
女痞
4楼-- · 2019-04-29 17:46

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

查看更多
Anthone
5楼-- · 2019-04-29 17:47

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.

查看更多
Root(大扎)
6楼-- · 2019-04-29 17:48

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.

查看更多
女痞
7楼-- · 2019-04-29 17:54

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.

查看更多
登录 后发表回答