JSFiddle - React, Tailwind, and code Playground
by pseabury
HTML
<audio controls>
<source src="http://dl.dropbox.com/s/yui1mupq7n49um3/ding1.mp3" type="audio/mpeg">
<source src="http://dl.dropbox.com/s/z0wtw2h9wgmlmqb/ding1.ogg" type="audio/ogg">
</audio>
<h1>Check for Html5 Audio Support via Audio()</h1>
<h3 id="result"></h>
JavaScript
$(document).ready(function () {
try {
var a = new Audio();
$('#result').html("Supports Audio");
} catch (e) {
$('#result').html(e);
}
});