play audio in html using id code example Example: html play audio programmatically document.getElementById('yourAudioTag').play();