HTML5 > Structures

Source tag in HTML5

How to use source in audio and video in HTML


Source 

Source is used in the audio and video functions which is used to select the songs in audio and video functions 

 <p>Source is used in audio and video </p>
    <audio controls>
        <source src="horse.ogg" type="audio/ogg">
        <source src="horse.mp3" type="audio/mpeg">
    </audio>

In the above code snippet we have defined as  audio song by using source, source selects the songs in audio and video functions to play a song 

output

 Views: 417 | Post Order: 83



Write for us