To create Youtube embedded code with LOOP, add "?loop=1&playlist=ZWQGZxpm9mE" after the url, as shown below
playlist=ZWQGZxpm9mE is the ID of the video
<iframe width="560" height="315" src="https://www.youtube.com/embed/ZWQGZxpm9mE?loop=1&playlist=ZWQGZxpm9mE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
CSS
.videoWrapper { position: relative; padding-bottom: 56.25%; /* 16:9 */ padding-top: 25px; height: 0; } .videoWrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
HTML
<div class="videoWrapper"> <iframe width="100%" height="425" src="https://www.youtube.com/embed/U-Vs550CRc4?autoplay=1&showinfo=0&loop=1&list=PLyU5X-W7kMhMj9oBTnP58QS7bV9AVkZu4&rel=0" frameborder="0" allowfullscreen></iframe> </div>