Is it safe to use the HTML5 button element for production websites?
Is it still worth using the traditional input
element for buttons or can I start to use the HTML5 button right away?
I have been able to verify that the button
element works on the following, but are there any issues that I need开发者_高级运维 to be aware of?
- IE9 (3 modes from F12 tools)
- IE9 with IE9 standards
- IE8 with IE8 standards
- IE7 with IE7 standards
- Chrome 13
- Firefox 4
- Safari 5
Note: I am not supporting IE6-, I am interested in IE7+, Chrome, Safari, FireFox, Opera, etc.
I say use the button
element as you then also get free accessibility via the keyboard with it, which can be handy.
Plus if it's a button, use the element that's made for it!
精彩评论