The HTML5 Audio Tag The HLTM5 Audio Tag can be used to add background music to any website. The code provided in this tutorial will work on any platform. I will demonstrate the HTML5 Audio functionality right in this blog post. As you can see in the lower left side of this page, there is a speaker icon on a white background. If you hover this icon the HTML5 audio player, playing the background music for this tutorial, is displayed. HTML5 Audio Attributes We Will Use In This Tutorial For the purpose of this tutorial we will want the HTML5 Audio tag to preload the song, we will also want it to displays the audio controls, autoplay and loop the audio. So the audio tag we will use will look something like this: <audio controls autoplay preload loop> ... </audio> Adding The Audio We will add the audio track in both mp3 and ogg format so that we can get cross browser compatibility. Not all browsers support mp3 and not all browsers support ogg . But using them together we c...