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.
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.