This is the most basic version of adding audio to your website using HTML
<audio> tag. Very similar to this methodology is also the video tag. Audio can be sourced from your web root or a link to an online repository. Many of the current browsers will not allow you to embed audio invisibly.
HTML audio allows you to use several different attributes including controls loop and autoplay.
Although the standards for the web allow for the attribute called autoplay, most current browsers block auto playing. There are some tricky workarounds that we will discuss in future lessons.
<audio controls loop autoplay>
<source src="ping.mp3" type="audio/ogg">
<source src="ping.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio >
renders the following: