How to add audio to a HTML image?

前端 未结 3 1841
离开以前
离开以前 2021-01-15 17:48

I\'m still new to all this, but I\'m trying to add audio mp3 sound to an HTML image, which is played when clicked on. How can I do this right?

I\'ve already tries a

3条回答
  •  旧时难觅i
    2021-01-15 18:43

    You can use HTML5 Audio Tag:

     
    

    More Information: http://www.w3schools.com/html/html5_audio.asp

提交回复
热议问题