HTML <source> element


<source> tag is a new HTML5 element. It defines a media source for video or audio elements. It's a void tag, no closing tag </source> is needed.

<audio controls>
<source src="file/Ring.mp3" type="audio/mp3">
</audio>


<source> tag may not work well under browsers other than Internet Explorer.

Specific attributes of <source> tag:
AttributeDescription
media Media type, including screen, tty, aural, tv, all, handheld, projection, print, default is all
type MIME type
src URL of the audio