title: Why can't get sound with HTML audio tag with autoplay attribute
body: <p>I tried to make a  creat html page  for a trainer. So I wanted to have start page sound audio which automatically plays. But, when I open the start page, this audio file doesn't autoplay. I tested it with a chrome browser</p>
  
  <p>This is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;audio id="myautoload" autoplay&gt;
  &lt;source src="https://www.w3schools.com/tags/horse.mp3" type="audio/mpeg"&gt;
  &lt;/audio&gt;
  &lt;script&gt; document.getElementById('myautoload').play(); &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I used the other way, it also does not autoplay</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>var myadido = document.getElementById("myautoload");
    myadido.addEventListener("canplay", function() {
       {
        setTimeout(function() {
        myadido.play();
  
        },500);
  
    });</code></pre>
  </div>
  </div>
  </p>
  
  <p>I've tried your solution, but the audio still won't play.</p>
  
  <p>I hope everyone helps me, thank you so much</p>