How to embed YouTube video in Blogger or any website?

Today, you will learn how to embed YouTube video in blogger or any website by using simple method. This will make your video auto-play whenever someone goes to your website. You will be benefited in two ways. One is that your website looks great and you will save your time while explaining something because people love to watch more than just read it. Another benefit is that it increases YouTube views and people stick on that website for a long duration.Go to YouTube channel and  find the video that you want to embed in website to make it auto play. Click share button on that particular video then click embed button.



You will get a code which you can use it for embedding video in the website but before pasting code, you will need to modify it to make it auto-play.



Copy the code in Notepad which will look like this:

 <iframe width="560" height="315" src="https://www.youtube.com/embed/jv4DBRTGGEo" 
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; 
picture-in-picture" allowfullscreen></iframe>

Now, modify it by adding "?autoplay=1 " before inverted comma in src file.

 <iframe width="560" height="315" src="https://www.youtube.com/embed/jv4DBRTGGEo?autoplay=1" 
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; 
picture-in-picture" allowfullscreen></iframe>

Paste this modified code in your blog post.


There are Compose and HTML tab available where you write posts and you need to click on the HTML tab and paste the code at last when you finished to write your post. Here is the demo.


I have pasted iframe code at last in HTML section and it will look like the video given below when you click compose tab. This is same in WordPress as well. Now publish it to make it live.



Comments