With HTML5 <audio> tag, you can easily add audio into web pages with the codes in the source code box below.

controls=”controls” tells us the player will show basic play control: play, pause, volume button and progressbar. Attribute src indicates the location where to access the audio.

Since <audio> tag dosn’t support “width” feature, you may set the width with css style. If your browser doesn’t support HTML5 audio tag, the sentence “Your browser does not support the HTML5 audio element.” will be displayed.

Source Code Box: audio (Browsers:IE9+, Firefox, Chrome, Safari6+, Opera12+)