How to embed a Youtube video into your website (+autoplay/loop)π₯
Having a video within your site today has become massively more demanded by users. So hereβs how:
1.) Embed a youtube video in your website. π¦
Just paste this tag within your HTML, replacing the youtube video URL with your own (and also adjust your own width and height):
<iframe width="420" height="315"src="https://www.youtube.com/embed/tgbNymZ7vqY"></iframe>
2.) Have the video AutoPlay(start the video on load). βΆοΈ
Add β?autoplay=1β to the end of your youtube URL:
<iframe width="420" height="315"src="https://www.youtube.com/embed/tgbNymZ7vqY?autoplay=1"></iframe>
3.) Have the video continuously Loop (for ex. as a background vid) π
Add β&loop=1β to the end of your youtube URL:
<iframe width=β420" height=β315"
src=βhttps://www.youtube.com/embed/tgbNymZ7vqY?playlist=tgbNymZ7vqY&loop=1">
</iframe>
And Wala, you have successfully embedded a video onto your website! π
Thanks for reading! π Please leave a clap if this helped. Alsoβ¦