how to play youtube video on your site code example

Example 1: how to make a youtube video on a website

<iframe width="560" height="315" src="https://www.youtube.com/embed/**PUTIDOFVIDEOHERE**" 
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>

Example 2: how to make a youtube video on a website and let it start by a set time

<iframe width="560" height="315" src="https://www.youtube.com/embed/**VIDEOID**?start=*WHATSECONDYOUWANTTOSTARTAT*" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Tags:

Html Example