+ 2

How to add background music to my html page?

17th May 2017, 1:04 PM
Varun Kumar
Varun Kumar - avatar
4 Antworten
+ 5
inside body tag <embed src="bgsound.mp3" autostart="true" loop="true">  
17th May 2017, 1:19 PM
MR Programmer
MR Programmer - avatar
+ 2
<audio controls autoplay hidden> <source src="link/to/file/file.mp3" type="audio/mpeg"> If you're reading this, audio isn't supported. </audio>
17th May 2017, 1:26 PM
Varun Kumar
Varun Kumar - avatar
+ 1
you can do it but I wouldn't, people hate music that automatically plays when you load web pages
17th May 2017, 2:54 PM
Jason Hoffman
Jason Hoffman - avatar