Use the HTML <audio> tag to add audio playback to your website. It is very simple.
First, you have to add your audio file to the same project folder as your webpage files. The file must be MP3, WAV, or OGG format.
This is one possible place where you can place your audio file.
src is path to your clip relative to the webpage file.
type attribute is the audio format of your clip.
controls attribute specifies whether you want to show audio playback controls on your webpage. It is this simple to add audio clip playback to your webpage.
<source src="song.mp3" type="audio/mpeg">
Your browser does not support the audio element.
The result looks like
That’s all there is to it. Making a website with audio playback is simpler than ever.