Online: 14718
Source is used in the audio and video functions which is used to select the songs in audio and video functions
<p>Source is used in audio and video </p>
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
</audio>
In the above code snippet we have defined as audio song by using source, source selects the songs in audio and video functions to play a song
output