How to play a sound in html code example Example: play a sound wiith js var audio = new Audio('audio.mp3'); audio.play();