HTML Audio Tag



Some time ago it was quite complex to include music or sounds on a web page. Now, the problem is being solved, in which the sound is quite easy.

<embed height="60" type="audio/midi" width="144" src="audio.mp3" volume="60" loop="false" autostart="false" />.

It is recommended that both height and width be directly proportional to avoid problems.

The value of the hidden attribute This thing is done If you are absolutely sure that the user does not want to stop

Example - 

<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>


 Browser Support


BrowserMP3WavOgg
Internet ExplorerYESNONO
ChromeYESYESYES
FirefoxYESYESYES
SafariYESYESNO
OperaYESYESYES
Controlling and manipulating the audio player


Media Types

File FormatMedia Type
MP3audio/mpeg
Oggaudio/ogg
Wavaudio/wav
Share on Google Plus

About It E Research

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment