To play audio in HTML 5 we can used the <audio> element. <audio> element is introduced in HTML 5 before that audio files could only be played in a browser with a plug-in (like flash).
HTML 5 support three file format, these are MP3, OGG or WAV.
Autoplay: autoplay attribute is used to play an audio automatically .
Controls: The controls attribute is used to provide audio controls, like play, pause, and volume.
Loop: It is used to play an audio again and again.
Muted: To mute the audio muted attribute is used.
Src: To specify the path of audio src attribute is used.