Embed YouTube Videos in SharePoint 2013/2016/Online Web Pages

This SharePoint tutorial, we will discuss how we can embed YouTube videos in SharePoint Online or SharePoint 2013/2016 using the embed code.

We will also see the difference between embed code and Script editor web part in SharePoint 2013/2016/Online.

In SharePoint we can embed code from sites like YouTube, Facebook or Twitter using embed code.

I have also created a video tutorial on Embed YouTube Videos in SharePoint. If you like our videos, Subscribe to Our EnjoySharePoint YouTube Channel.

Embed YouTube Videos in SharePoint

Copy Embed Code from YouTube for SharePoint

We can easily get the embed code from YouTube, right click on the YouTube video and click on Copy Embed Code like below:

Embed YouTube Videos in SharePoint
Embed YouTube Videos in SharePoint
<iframe width="750" height="500" src="https://www.youtube.com/embed/tAWbVL6S8-A" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Embed YouTube Videos in SharePoint

Now we can embed YouTube videos in SharePoint Online or SharePoint 2013/2016. Open any SharePoint web page. And then edit the web page and then click on INSERT tab and then Embed Code like below and then enter the YouTube embed code like below:

Embed YouTube Videos in SharePoint 2013
Embed YouTube Videos in SharePoint 2013

Once you add the code Save the page, the YouTube Video will appear like below:

Embed YouTube Videos in SharePoint online
Embed YouTube Videos in SharePoint online

This way we can embed YouTube videos to SharePoint Online or SharePoint 2013/2016 sites.

Difference between the Embed code and Script editor web part in SharePoint 2013/2016/Online

Now we will see some difference between the Embed code and Script editor web part in SharePoint 2013/2016 or SharePoint Online.

Both Embed code and Script editor web part are new in SharePoint 2013. You can include JavaScript and HTML contents through the Embed Code which you will get when edit a site page and this is located under Insert Tab in the Ribbon.

Script editor web part also you can use to paste your HTML and JavaScript into the page. But it is a reusable one. The difference between these two is Embed code is not reusable.

Another major difference between these two is Embed code allows you to place the Iframe elements but Script Editor Web Part doesn’t allow. So Youtube, Twitter or LinkedIn or Facebook code you can paste through Embed Code.

You may like following SharePoint tutorials:

Hope this tutorial helps to learn how to embed YouTube Videos in SharePoint and difference between the Embed code and Script editor web part in SharePoint 2013/2016/Online.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>