Skip to content
← Back to Community
How to add music to website with autoplay?
Profile icon
cic2

How to add music to website with autoplay?

Answered by PowerCoder [earned 5 cycles]
View Answer
Voters
Profile icon
fandiardian12
Profile icon
himanshu4
Profile icon
EnkaiMosu
Profile icon
MonicaMcWilliam
Profile icon
Sem4HA
Profile icon
LeoXu2
Comments
hotnewtop
Profile icon
PowerCoder
<audio src="AUDIO_FILE_HERE" autoplay></audio>

Mark this as the correct answer if this helped :D

Profile icon
cic2

@PowerCoder you are so smart!

Profile icon
nameistaken666

Is there a way to loop it? or does it do it by itself?
@PowerCoder

Profile icon
PowerCoder

@nameistaken666 To loop it, just add the "loop" attribute.

<audio src="AUDIO_FILE_HERE" autoplay loop></audio>
Profile icon
nameistaken666

@PowerCoder Im sorry for bothering you again but is there a specific file it works for, or is it any audio file?

Profile icon
PowerCoder

@nameistaken666 any audio file

Profile icon
AlmiraGriselda

You can download the ringtone here without doing anything. Everything is available at https://klingeltone-kostenlos.de/

Profile icon
GlanvilleSpears

With Spotify Premium you can have a lot of songs and also a lot of great music available in the world here: https://apkcima.com/spotify-premium/