what is the use of second src in this code? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 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