How do you embed Youtube videos to HTML pages?

If you know the exact Youtube URL you want to embed onto your webpage, its very easy to embed the video link. Simply go to the Youtube video, right click on the video and choose the "Copy Embed Code".

You can paste this code onto your webpage. For example, here is some sample embed Youtube video code below.

<iframe width="1796" height="861" src="https://www.youtube.com/embed/uXyy7lgDj9k%22" title="10 Best Places to Visit in Norway - Travel Video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

If you want to change the height and width of the embedded video, you can do so by modifying the values for width and height parameters.