HTML5: Playing audio files

This entry is part 34 of 34 in the series HTML5

Audio tag is also supported in HTML5.

HTML5 is really a work in progress.  Not all browsers support audio tag.

The tag works now in Chrome and Safari.

<!DOCTYPE html>
<html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title>Sample Audio</title>
</head>
<body>
<audio controls src='https://codecrawl.com/code/html/dance.mp3'></audio>
</body>
</html>

Series Navigation<< HTML5: Playing video