<audio controls src="audio.mp3"></audio>
src – specifies the path to the audio file being played.
muted – turns off the audio track
autoplay – audio starts playing automatically after the page is loaded.*
controls – adds a control panel to an audio file.
loop – repeats audio playback from the beginning after it ends.
preload – used to download audio along with web page loading.
This attribute is for
to give control over the download of the media file.
It can have one of the following values:
– none: Specifies that the audio should not be preloaded.
– metadata: Specifies that audio metadata is preloaded
(for example, length).
– auto: indicates that the entire audio file can be loaded,
even if the user should not use it.
– empty string: synonymous with auto.