How to Embed YouTube Videos to Your Blog or Website

Do you want to embed YouTube videos to your website/blog?

It’s easy to embed YouTube videos to your website/blog using either iframe or HTML object tag.

Follow below mentioned steps to embed YouTube videos to your website/blog.

Step-1: Open YouTube website and find the video you want to embed.

Step-2: Click on “Share” button below the video.

Step-3: Click on the “Embed” button next to “Share the video”.

Step-4: Copy the “iframe” code and paste it into your HTML page of your website/blog.

Embed YouTube Video

Example with iframe:

Here I have taken sample video of IT Blogger Tips.

<html>

<body>

  <iframe width="420" height="315" src="http://www.youtube.com/embed/olB0XmMQRbU" frameborder="0" allowfullscreen></iframe>

</body>

</html>

Example with Object tag:

<html>

<body>

  <object data="http://www.youtube.com/embed/olB0XmMQRbU" width="560" height="315" frameborder="0"></object>

</body>

</html>

Live example of this video is below.

Comment below if you know some other options to embed the video in HTML page.

Don’t forget to share if you liked this post.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Scroll to Top