How to put a background music in html page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to put a background music in html page?

How to put a music on my html page that is repeating the music or replaying automatically

6th Jun 2016, 6:02 AM
James Michael Kasangga
James Michael Kasangga - avatar
3 Answers
+ 6
use <audio src="path _to_file" controls auto play loop>
6th Jun 2016, 9:15 AM
Валерий Ухов
Валерий Ухов - avatar
+ 1
I hate it when people do that :)
6th Jun 2016, 10:47 PM
ZinC
ZinC - avatar
+ 1
never a good idea...
1st Nov 2016, 12:20 AM
Ariel Blasi
Ariel Blasi - avatar