The audio element is used to embed sound content in an HTML or XHTML document. The audio element was added as part of HTML5.
HTML5 defines a new element which specifies a standard way to embed an audio file on a web page: the <audio>
element.
The control attribute adds audio controls, like play, pause, and volume.
You should also insert text content between the <audio>
and </audio>
tags for browsers that do not support the <audio>
element.
The <audio>
element allows multiple <source>
elements. <source>
elements can link to different audio files. The browser will use the first recognized format.
Read on at w3c HTML5 Audio. More information can also be found on Wikipedia.
Related Articles: