Html – Which browsers support the html 5

html

Which browsers support the html 5 <audio> tag on Windows today?

Edit: Trying http://moztw.org/demo/audioplayer/ as a test. Chrome 2, and Safari 4 not working for me.

Best Solution

if this evaluates to true:

!!document.createElement('audio').canPlayType

, then you have audio tag support in your browser. Doing a feature detect like this is a lot better than parsing userAgent strings.

Alternatively, you can use something like Modernizr to handle this detect and many others for you.

Related Question