Why I can't play audio automatically using html?
05:52 26 Feb 2023

I'm trying to make web page in which there will be music playing in background.




    
    
     Website 
    


    

Welcome to my website

You can see audio player, so web page can find mp3 file for sure.(https://i.sstatic.net/4GERM.png)

I tried many different approaches (audio tag, embed tag, iframe, some js scripts) but I can only make audio player and I have to turn on music manually, and I can't find way to start playing music, when i enter web page. My browser is opera gx, but i tried also do this in edge with same results. Do you have any ideas how to make it work?

html audio browser html5-audio