Recently, I created a piece of music that I envision as the perfect background sound for my website. I want it to be easily paused but also set to play automatically when someone visits the webpage to set the right tone!
This is what my current code looks like:
<audio controls>
<source src="music.mp3" type="audio/ogg">
</audio>
While I have successfully made it play, I really want it to start playing as soon as the page loads!
Your help with this would be greatly appreciated. Thank you!