HTML Audio

Audio Tag

  • The <audio> tag is used to embed 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.
  • There are three supported audio formats in HTML: MP3, WAV, and OGG.


Example:

<audio controls>
<source src="horse.ogg" type="audio/ogg">
</audio>

Cristle Academy

Compiler