+ 3
This post explains to you how to add background music?
To add background music do this: <audio autoplay loop> <source src="[url]" type="audio/[type]"> </audio> But I do not know how to make audio play by pressing a button you made.
2 Antworten
+ 2
<audio controls>
<source src="[url]" type="audio/[type]">
</audio>
this shows what you want.
+ 1
no I know controls I'm talking about when you press a button then a sound plays. For example you press an image of a cookie. Then it makes a mario coin sound.