There are several methods of adding audio and each method has its own advantages and disadvantages. There are many different methods that can be used to add media to your pages. Please note that some of the methods listed below are not supported in HTML 4.01. You either have to have a browser that supports HTML5 or your users will have to install the required plug-ins. Here are the most common ways to add a video to your web pages.
Audio Element
The
Embed & Object Elements
You can also use the
Use Multiple Solutions
Another method is to use various elements so that at least one method is likely to be supported by the user’s browser. Keep in mind that this option includes HTML4 and HTML5 elements. For your page to validate correctly, you will need to use the HTML5 DOCTYPE, . In this example, the browser will attempt to play the audio using one of the elements in this order: audio, object, then embed. Here is an example. Again, my suggestion is to implement an audio solution that is easy to maintain while still providing a meeting of the needs of your users.