html

Autoplay YouTube Video in HTML Iframe

To play YouTube video embedded using Iframe in HTML you need to pass autoplay=1 and mute=1 in the src after video URL.

<iframe width="500" height="370"
src="https://www.youtube.com/embed/pmlmMM_ToHE?autoplay=1&mute=1">
</iframe>
Was this helpful?