Embed a YouTube video in a web page

1. Use a browser and navigate to the YouTube video that you want to embed. It will start playing automatically so stop it.



2. Scroll down until you see the Share link/button ..



3. Click the Share link/button to reveal the Embed link/button ..



4. Click the Embed link/button to show the code you will need to copy. It will look something like this.

<iframe width="560" height="315" src="https://www.youtube.com/embed/sUTuWE-0Kzw?rel=0" frameborder="0" allowfullscreen></iframe>

Note that the size is set to 560px wide by 315px height. If this size is OK you can go ahead and paste the code into your html document. The <div> tag will need to be big enough to accommodate it.



5. If you want to change the size of the video, click "SHOW MORE" below the code ..



6. You can now set a custom size by entering the new width. The new height will appear automatically ..



7. Now copy and paste the customised code.