I am trying to implement sound in my html / js project, but it is currently not working. Without current access to a working console, I can't figure out what is wrong, or even if anything is.
If anyone knows how to play sound from an html page, I would be very grateful for your response.
You can use the <embed> tag or the newer <audio> tag to insert a sound file directly into a web page. With audio files, I recommend using the . MP3 file format because of its wide acceptance on the Internet, and is utilized by all browsers and operating systems. This will run music in the background whenever the page loads.
at this time audio can only be auto played on user interaction to the webpage this can be a click or things like this u can add $('#music').append('music html') to append on user interaction