<audio controls> <source src="https://www.PuStudy.Com/resources/good-enough.mp3" type="audio/mpeg"> <source src="https://www.PuStudy.Com/resources/good-enough.wma" type="audio/x-ms-wma"> <p>Fallback content: This message is only displayed on browsers that don't support the HTML 'audio' element.</p> </audio>
The above example demonstrates usage of the
src attribute is used to provide the URL of the resource.
In the above example, two separate source files are provided — an MP3 file and a WMA file. If the first one isn't supported, the browser will try the next one.