Answers for "youtube autoplay html"

5

how to autoplay youtube video in html

<iframe width="420" height="315" 
        src="https://www.youtube.com/embed/tgbNymZ7vqY?autoplay=1">
</iframe><!-- Add "?autoplay=1" in the link as seen above -->
Posted by: Guest on May-06-2021
1

iframe autoplay

<!-- 
first add ?autoplay=1 to your video url
then add allow='autoplay' attribute to your iframe element
-->
<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1" allow='autoplay'></iframe>
Posted by: Guest on June-23-2020

Browse Popular Code Answers by Language