View video tutorial

HTML Audio

HTML

The <audio> tag is used to play an audio file on a web page.

HTML Audio


<audio> tag uses <source> tag for audio files of alternate formats.

The first recognized file will be played.

The controls attribute adds media control buttons on the screen. such as play, pause, volume etc.

If no files recognized by the browsers the text inside <audio> tags will be displayed.