How can i make music to autoplay on my website | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can i make music to autoplay on my website

without me always pressing the play button for the audio to play https://code.sololearn.com/WgqS5jYZq1zv/?ref=app

26th Mar 2020, 6:32 AM
Icey Python
Icey Python - avatar
5 Answers
+ 2
Its not working for me.....
27th Mar 2020, 6:40 AM
Icey Python
Icey Python - avatar
+ 1
Write "autoplay" inside <audio> Example: <audio src="#.mp3" controls autoplay>
27th Mar 2020, 6:33 AM
Shahzod Toshev-Safarov
Shahzod Toshev-Safarov - avatar
0
<source src="horse.mp3" type="audio/mpeg">
27th Mar 2020, 10:07 AM
K. P. D. Madhuka
K. P. D. Madhuka - avatar
0
Autoplay does'nt work with chrome so you can try to open the file with IE and the audio will start in its own
27th Mar 2020, 6:49 PM
Alessio Farroni
Alessio Farroni - avatar
0
Thanks
28th Mar 2020, 8:59 AM
Icey Python
Icey Python - avatar