HTML Audio Tag


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.

  1. mp3
  2. wav
  3. 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:-

Audio tag

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:


Leave a Comment