Audios could previously only be played on websites using web plugins such as Flash. The "audio" tag is an inline element for embedding sound files into a web page. It's a handy tag if you want to include audio on your website, such as songs or interviews.
To play an audio file on the webpage, we can use the < audio> element. The file formats which can be used are MP3, WAV, OGG. The attributes which can be used with the < audio> tag are as follows:
used to add audio controls like play, pause.
used to play the audio as soon as it is executed
used to mute the audio
used to play the audio repeatedly
|