+ 2
How can we make the audio in html programme play automatically?
Playing audio in html
2 Answers
+ 8
there's a way for sure on Sololearn, I don't know how though. analyze this code:
https://code.sololearn.com/WDvA80m1oW1w/?ref=app
+ 3
<audio src="http://www.sololearn.com/uploads/audio.mp3" autoplay controls loop>
if you remove "controls", you remove the controls
if you add "loop", it's gonna loop it
if you add "autoplay", you make it auto play once user opens the page