0

what is the use of second src in this code?

<audio controls> <source src="audio.mp3" type="audio/mpeg"> <source src="audio.ogg" type="audio/ogg"> Audio element not supported by your browser. </audio> it doesnt make any visual difference if- <source src="audio.ogg" type="audio/ogg">- is commented.

14th Mar 2018, 5:29 AM
Himanshi Rajput
Himanshi Rajput - avatar
1 Answer
+ 4
You have added same audio with two different extensions, in such cases first audio will play but when error occurs with first one then second audio will play.
14th Mar 2018, 5:36 AM
Pravin Pandey
Pravin Pandey - avatar