How to Embed Youtube Video Html Code into Your WordPress or Blogger Website

If you are a website owner you will definitely need to know how to embed Youtube video HTML code into your website. In the old days, embedding a video into your website was a huge task that was not only difficult, but took up a lot of bandwidth. However with the invention of websites like Youtube video, you can now embed Youtube video HTML code into your website while Youtube hosts the actual video. This way you get to use Youtube’s bandwidth for free and still enhance your website with videos that suit your websites theme. Having video embedded into your website is the way of the future as many people have fast Internet speeds and fast computers that enable them to view video easily.

Firstly I would like to explain a few things about how to embed Youtube video HTML. This process used to be the same for all different types of websites, however now Youtube has changed its code, and therefore there are a few different options on how to embed Youtube video HTML.

For Websites that allow you to embed Iframe code, then simply going to Youtube and getting the embed code is basically all you have to do. As explained directly below, these instructions will apply for blogger blogs, HTML websites, and anything that excepts Iframe code. WordPress websites do not take this code and therefore you will need to see the instructions below that apply for WordPress websites.

How to embed Youtube video HTML into your website:

You can use these instruction for websites and blogs that will take the Iframe code.

  1. Go to the website and find the video that you would like to embed into your HTML.
  2. At the bottom of the video there is a a button that says share.
  3. Press on this button to reveal your sharing options.
  4. To embed Youtube video into a website press on the embed button.
  5. Select the code in that box by making it blue.
  6. Then right click on the selected text.
  7. From the menu choose copy.
  8. Now you can paste this code into your website HTML section.

embed youtube video html

As you can see by the screenshot above, after I pressed the embed button, many more options for embedding the Youtube video appeared. You can choose to include related videos, change the size of your video, and also a few other options. It will also allow you to use the old embedded code.

The actual code to embed Youtube video html looks like this:

<iframe width=”480″ height=”390″ src=”″ frameborder=”0″ allowfullscreen></iframe>

The Old code looks like this below:

<object width=”425″ height=”344″><param name=”movie” value=”″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”″ type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

How to embed Youtube video HTML code into a Blogger website?

There are two ways to embed you tube video HTML code into blogger. The first way is to press on the tiny add a video button when composing your post. A box will appear and you can either upload a video or choose to get one from Youtube. There is a search box there for you to search for a Youtube video to suit your post. When you find one it will be inserted into your blog for you. See the screen shot below.

embed youtube video blogger blog

The second way to embed Youtube video Html into a blogger blog is to get the code from Youtube, as shown above in the first tutorial, and then to add it to the HTML section of your blog.

  1. When your are writing a post in WordPress or Blogger you can simply press on the edit HTML tab.
  2. Then click in the section where you want to paste the code.
  3. Right click and choose paste from the menu.
  4. To view your Youtube video you can now press on the preview button.

embed video

How to embed Youtube video HTML code into a WordPress website?

There are also three options on how to embed Youtube video HTML code into WordPress.

The first option is to simply tick the box next to where it says “use old embed code” when getting the Youtube video HTML code from Youtube. This means the Iframe code will be converted into the old type code that you can easily insert into the HTML section of your WordPress website. Therefore when you are writing a post, simply click on the HTML tab to embed the video code.

wordpress embed youtube video html

The second option to embed Youtube video HTML into WordPress is to download a plug-in that will allow you to insert Youtube videos easily. I have “Iframe embed for Youtube” plugin. This means I only have to press a button and add the Youtube URL into the box provided and the video will be added into my WordPress post.

embed youtube

The third way changed the need for any previous ways to be used. When WordPress updated in mid 2013 it allowed us to directly embed a youtube video by simply pasting a link into your post on a line by itself, and not making it a clickable link. It had to to text only to work.

You can also use the shortcode as well.

Notes on how to embed Youtube video:

  • If you are pasting this into your HTML of a website you can paste this code anywhere between the <body> and </body> tag.
  • You can also upload your own Youtube video to Youtube and then paste the code into your website. See how to upload a video to Youtube.
  • In a forum post if embedding Youtube video’s is enabled then you can sometimes put the url of the video in between [youtube] tags [/yoututbe].

Adding video to your website can improve your websites bounce rate on Google Analytics as people will stay on your website for longer. Video also enhances hot to tutorials and lessons by showing hands on situations. It is really like having a personal teacher in the room with you.
If you have any other tips and tricks on how to embed Youtube video HTML into your website, please add a comment below.