기본 오디오 샘플

<!DOCTYPE html>
<html lang="ko">
<!--audiotest1.html --> 
<head>
    <title>audio 태그</title>
    <meta charset="UTF-8"/>
</head>
<body>
<h1>기본 오디오 샘플</h1>
<audio src="https://www.w3schools.com/tags/horse.mp3" controls>
  Your browser does not support the <code>audio</code> element.
</audio>
</body>
</html>

결과

옵션들

<!DOCTYPE html>
<html lang="ko">
<!--audiotest2.html --> 
<head>
    <title>audio 태그</title>
    <meta charset="UTF-8"/>
</head>
<body>
<h1>옵션들</h1>
<audio src="https://www.w3schools.com/tags/horse.mp3" 
  controls autoplay>
  Your browser does not support the <code>audio</code> element.
</audio>
</body>
</html>

결과