Categories
Blog

🎵 Background Music on a HTML Page

Trying to play background music on a HTML page.

Autoplay needs to be enabled in your browser.

BTW, this is the HTML code:<audio src="../audio/file-name.mp3" autoplay loop></audio>

Music: Snow Cakes with Friends. CC0 via Chosic

Update: The music is not playing after I migrated my site to WordPress. The custom HTML code is not running. But, the above code is valid, if you wanna use it.

Leave a Reply

Your email address will not be published.