Ask coding questions

← Back to all posts
How to add music to website with autoplay?
cic2

How to add music to website with autoplay?

Answered by PowerCoder [earned 5 cycles]
View Answer
Voters
himanshu4
EnkaiMosu
MonicaMcWilliam
Sem4HA
LeoXu2
Comments
hotnewtop
PowerCoder

Mark this as the correct answer if this helped :D

cic2

@PowerCoder you are so smart!

nameistaken666

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

PowerCoder

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

nameistaken666

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

PowerCoder

@nameistaken666 any audio file