Javascript Ajax jQuery HTML PHP Example MORE
Need a Website Or Web Application Or Any Help.Contact Us: +91 9437911966 (Whatsapp) Note: Paid Service

HTML Audio With Example

To play audio in HTML 5 we can used the <audio> element. <audio> element is introduced in HTML 5 before that audio files could only be played in a browser with a plug-in (like flash).

HTML 5 support three file format, these are MP3, OGG or WAV.

HTML Audio Attribute:

Autoplay: autoplay attribute is used to play an audio automatically .

Controls: The controls attribute is used to provide audio controls, like play, pause, and volume.

Loop: It is used to play an audio again and again.

Muted: To mute the audio muted attribute is used.

Src: To specify the path of audio src attribute is used.