An audio player with two source files. The browser should choose which file (if any) it has support for:
The <source> tag is supported in Internet Explorer 9+, Firefox, Opera, Chrome, and Safari.
Note: Internet Explorer 8 and earlier versions, do not support the <source> tag.
The <source> tag is used to specify multiple media resources for media elements, such as <video> and <audio>.
The <source> tag allows you to specify alternative video/audio files which the browser may choose from, based on its media type or codec support.
The <source> tag is new in HTML5.
New : New in HTML5.
|mediaNew||media_query||Specifies the type of media resource|
|srcNew||URL||Specifies the URL of the media file|
|typeNew||MIME_type||Specifies the MIME type of the media resource|
The <source> tag also supports the Global Attributes in HTML.
The <source> tag also supports the Event Attributes in HTML.
Your message has been sent to W3Schools.