Concept of Audio Element

Three standard formats for web browsrs are .mp3, .wav and .ogg




image of Ramesh Kumar


There are several attributes for audio. Inside audio element, there is source element.

If you have multiple audio files you need to use source element only like for one audio file, one source element and for audio files, two source element. Control attribute is used to provide control for audio file

Value for controls attribute is not neccessary , it is optional If you want to play track automatically when page loaded then you use autoplay attribute and if you want to loop it you can use loop attribute.

you can use draggable attribute, in order to drag anything, this attribute is general not for audio only. here you can forward and backward

Concept of Video Element

Standard video formats for web browsers are .mp4, webm and .oggg

Same process as audio element, Three attribute for video element, width , height and control attribute you can do autoplay and loop attribute.