How to use audio tag


<audio>

All Tags not showing in online page, but show on view source.

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

Code show like this:

Browser Support

The <audio> tag is not supported Internet Explorer 8 and earlier versions.

What is audio tag

The <audio> tag use for insert audio on your website. You can also use three type audio format. When brosers that do’t support the audio tag then any text inside the between <audio> and </audio> will be displayed

  1. Mp3
  2. Ogg
  3. Wav

HTML5

The <audio> tag is new in HTML5.

Leave a Reply

Your email address will not be published. Required fields are marked *