Add audio as clickable to background image

23 views Asked by At

Old code is

<p><img style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; z-index: 0;" src="jim.jpg" alt="" /></p>

<audio autoplay=""> <source src="horn.mp3" type="audio/mpeg">Your browser does not support the audio element.</audio>`

`

Chrome disabled audio playing by default on pages back in 2018, want to make the image clickable instead to play a the sound

0

There are 0 answers