index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Audio Player Demo</title>
</head>
<body>
<h2>Native HTML5 Audio Player</h2>
<!-- Audio player with multiple format sources -->
<audio controls preload="metadata" style="width: 100%; max-width: 480px;">
<source src="https://www.w3schools.com/html/horse.ogg" type="audio/ogg">
<source src="https://www.w3schools.com/html/horse.mp3" type="audio/mpeg">
Your browser does not support the native HTML5 audio element.
</audio>
<p><small>Tip: Always include the <code>controls</code> attribute so users can pause and adjust sound volume.</small></p>
</body>
</html>