title: want to play audio and it should be stop after 10 seconds inHtml and javascript?
body: <p>I am new  in Html5 and javascript I want to play audio clip when i open html page and it should be stop after 10 seconds and display message that Audio play successfully.</p>
  
  <p>for simple audio play in html5 as below </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  
  &lt;audio controls&gt;
    &lt;source src="kill_bill.mp3" type="audio/mpeg"&gt;
  Your browser does not support the audio element.
  &lt;/audio&gt;
  &lt;script&gt;
  setInterval(function(), 10000);
  
  $.each($('audio'), function () { this.stop(); alert('Audio Stop Successfully'); });
  
  
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>