Audio Tag html5 learning

<audio> Tag html5 sound learning  



The <audio> tag embeds sound content in a document, such as music or other audio streams.

The <audio> tag contains one or more <source> tags with different audio sources. The browser will choose the first source it supports.

The text between the <audio> and </audio> tags will only be displayed in browsers that do not support the <audio> element.

The <audio> HTML element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using MediaStream.

<audio> Tag HTML  have three supported audio formats in HTML: MP3, WAV, and OGG.



Example:

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



Example:

<audio controls>
  <source src="https://www.fesliyanstudios.com/soundeffects-download.php?id=6560" type="audio/ogg"></audio>


Output:


Comments :

Post a Comment