Sound with html

Sound with html
0

#1

is there a way to link a sound to an image so that when someone mouseovers an image it plays a sound clip?


#2

Yes definitely but you will need some JavaScript with it.

You can attach a click event listener to an image then when the image is clicked, play an embedded audio.

Here is an idea.
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_audio_play