<audio>
Learn how <audio> tag works in HTML.
The <audio>
tag in HTML
The <audio>
tag is used to embed audio files in an HTML page. The structure of the <audio>
tag is as follows:
<audio>
<source src="music.mp3" type="audio/mpeg">
<source src="music.ogg" type="audio/ogg">
Audio tag is not supported in the browser
</audio>
The <audio>
tag itself can reference audio files.
However, the <source>
tag(s) inside the <audio>
tag can also provide the audio files that must be embedded in the HTML page. The ...