HTML Tutorial
The <audio> tag embeds audio content into HTML documents for playback.
src: URL of the audio filecontrols: Enable or disable playback controls (e.g., play/pause)autoplay: Start playback automaticallyloop: Repeat the audio indefinitelymuted: Start playback without sound<audio src="song.mp3" controls></audio>
<audio src="background-music.mp3" autoplay loop></audio>
<audio src="sound-effect.mp3" muted></audio>
Example: Exploring the <audio> Tag
<!DOCTYPE html>
<html>
<body>
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
aria-label attribute.