+ 1

How a source tag can be linked to media files inside video and audio element

Friends, my suspects are that how can I link the source tag to various media files and how it will work?

28th Apr 2019, 8:23 AM
Vikash Kumar
Vikash Kumar - avatar
2 Antworten
+ 8
Hey there 😃 In HTML, if we want to link to various forms of audio, like mp3 and ogg, we can use the <source> tag <audio> <source src="song.mp3"> <source src="song.ogg"> Sorry, can't play audio at the moment... </audio> Hope it helps 😃
28th Apr 2019, 8:51 AM
Edwin Pratt
Edwin Pratt - avatar
0
If i change the audio of second source element as song2.mp3 what will happen? Does it play multiple songs at same time or play the next song after one by one?
28th Apr 2019, 11:10 AM
Vikash Kumar
Vikash Kumar - avatar