audio tag

Advertisements

Prev Tutorial Next Tutorial

audio tag

Html <audio> tag defines sound, such as music or other audio streams.

Now, there are three supported audio file formats for the <audio> tag; those are given below;

  • MP3
  • Wav
  • Ogg

Browser supported

Audio formats
mp3YesYesYesNoYes
wavYesYesNoYesYes
oggYesYesNoYesNo

Syntax

<!DOCTYPE>
<html>
<body>
<audio controls>
  <source src="/html5/images/song.mp3" type="audio/mpeg">
  Your browser does not support the audio tag.
</audio>
</body>
</html>

Result

MIME Types for Audio Formats

FormatMIME Type
MP3audio/mpeg
Oggaudio/ogg
Wavaudio/wav

Browser supported

Element
<audio>YesYesYesYesYes

Prev Tutorial Next Tutorial

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements