Horje

How to add An audio player - HTML src Attribute

Audio Example. The audio src attribute Click on the play button to play a sound: Your browser does not support the audio element. Note: The .ogg fileformat is not supported in IE or Safari.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The audio src attribute</h1>

<p>Click on the play button to play a sound:</p>

<audio src="https://file-examples.com/wp-content/storage/2017/11/file_example_MP3_700KB.mp3" controls>
Your browser does not support the audio element.
</audio>

<p><b>Note:</b> The .ogg fileformat is not supported in IE or Safari.</p>

</body>
</html>

Output should be:

How to add An audio player - HTML src Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin