HTML <source> Tag

<audio controls>
<source src="" type="audio/mpeg">
<source src="" type="audio/x-ms-wma">
<p>Fallback content: This message is only displayed on browsers that don't support the HTML 'audio' element.</p>

The above example demonstrates usage of the <source> element.

The <source> element allows you to specify multiple alternative media sources for the <audio> and <video> elements.

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.