HTML <audio> element
<audio>
is a new HTML5 element. It presents an audio content such as song, music or a piece of sound.
Telephone ring example:
<audio src="file/Ring.mp3" controls><audio>
Specific attributes of <audio> tag:
Attribute | Description |
autoplay | Start play the audio automatically when page loaded |
controls | Show audio controls, otherwise the audio will not appear on th page |
preload | Preload the audio |
src | URL of the audio |