0
Y in the 2nd way for audio there are two source tags i mean they have written two links... Y??
7 Respostas
+ 1
When the browser finds the audio [EDIT: same for video] tag, it first tries with the first source. If the browser cannot play it, then tries with the second one... and so on.
+ 1
and the same thing goes for video element too
+ 1
https://www.w3schools.com/html/html5_audio.asp
"The <source> element allows you to specify alternative audio files which the browser may choose from. The browser will use the first recognized format.
The text between the <audio> and </audio> tags will only be displayed in browsers that do not support the <audio> element."
0
<audio controls>
<source src="http://www.sololearn.com/uploads/audio.mp3" type="audio/mpeg">
<source src="http://www.sololearn.com/uploads/audio.ogg" type="audio/ogg">
Audio element not supported by your browser.
</audio>
so here the source src (2nd one) .ogg is for what?? because the first one already is the audio link and type but is the second one studio quality?
because one of ma friend's told me its audio quality
0
for not supported browser
0
for not supported browsers
0
for not supported browser