HTML <audio> Tag
<audio src="/resources/sample.mp3" controls>
<p>Fallback content (only displayed if browser doesn't support the 'audio' element).</p>
</audio>
How to Use the above Code
- Replace the value of the
src
attribute with the URL to the audio file that you'd like to use. - Place any "fallback content" between the opening and closing
<audio>
tags (this content is only displayed if the browser doesn't support the<audio>
element).