How to embed youtube video in HTML?

By using <iframe> element you can embed a video on a webpage. Look at the given below how you can do it.
<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>
Here “src” attribute is filled by the video link that you want to embed. You can also set width and height as attributes “width” and “height”. The “allowfullscreen” attribute allows the video to be viewed in fullscreen mode.

Go from files to website in seconds.

Start a free trial for 7 days — no credit card required

Get Started for Free