how to add Music to html html code example
Example 1: how to add Music to body html
<!DOCTYPE html>
<html>
<head>
<title>HTML background music</title>
</head>
<body>
<p>The music is running in the background.</p>
<p>(Song: Kalimba which is provided as a Sample Music in Windows)</p>
<embed src="/html/Kalimba.mp3" loop="true" autostart="true" width="2" height="0">
</body>
</html>
Example 2: how do you play audio files on html
<audio src="sound.mp3" autoplay></audio>