How to embed audio element in a HTML document ?
Since the release of HTML5, audio can be added to webpages using the <audio> tag. Previously audio could be only played on webpages using web plugins like Flash. The <audio> tag is an inline element which is used to embed sound files into a web page. It is a very useful tag if you want to add audio such as songs, interviews, etc on your webpage.
<audio> <source src="sample.mp3" type="audio/mpeg"> </audio>
Example 2: In this example, audio will play automatically after loading the web page.