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

Advertisements

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

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

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

Download Projects

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