src
element. Following are the types of audio tags as shown below.
<audio>
The tag describes the sound content<source>
The tag defines the multiple media resources such as video or audio.<MP3>
MP3 format file supports audio/mpeg media type files.<Ogg>
Ogg format file supports audio/Ogg media type file.<Wav>
Wav format files support audio/Wav media type files.Attribute | Description |
---|---|
autoplay | By using the auto play attribute, it will play the audio file automatically after the data has been loaded. |
autobuffer | By using the autobuffer attribute, audio starts the buffering automatically. |
controals | By using the attribute user can control the audio files. |
preload | By using the attribute the page and audio file get loaded. |
src | The src attribute defines the url of the audio file. |