HTML5 > Structures

Source tag in HTML5

How to use source in audio and video in HTML


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

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 


 Views: 3130 | Post Order: 84

Write for us

Hosting Recommendations