HTML audio tag is employed to outline sounds like music and alternative audio clips. presently there area unit 3 supported file format for HTML five audio tag.
- mp3
- wav
- ogg
HTML5 supports and controls. The Flash, Silverlight and similar technologies area unit accustomed play the transmission things.
This table defines that that applications program supports that audio file format.
Example:-
Audio tag
HTML Audio Tag
Output:-
HTML Audio Tag
Attributes of HTML Audio Tag
- controls
- autoplay
- loop
- muted
- preload
- src
HTML Audio Tag Attributes Example
Audio tag
The audio Tag autoplay attribute
Click on the play button to play a sound: