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.

SiteGround Black Friday Sale Below Banner

Get Free Blogging Tips & Technology updates in your Email !!!

Subscribe via RSS feed

The following two tabs change content below.
Anil Kumar
IT Blogger Tips focus on Blogging Tips, SEO Tips, Social Media, SQL Tips, PL/SQL Tips, Oracle DBA, Linux/Unix, Latest Technology, How Tos and Technical Solutions. You can find us on Facebook | Twitter |
Find on Google+

Siteground SALE
70% OFF SiteGround WordPress Hosting – $2.95/month (Exclusive Offer !!!)