autoplay youtube embed video code example
Example 1: 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 -->
Example 2: autoplay youtube video
// Add this to your URL
?autoplay=1&mute=1
// example
https://www.youtube.com/embed/9QTojZVR_Ec?autoplay=1&mute=1