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.
SharePoint 2016 Tutorial Contents
We can easily get the embed code from YouTube, right click on the YouTube video and click on Copy Embed Code like below:
<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>
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:
Once you add the code Save the page, the YouTube Video will appear like below:
This way we can embed YouTube videos to SharePoint Online or SharePoint 2013/2016 sites.
Now we will see some difference between the Embed code and Script editor web part in SharePoint 2013/2016 or SharePoint Online.
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:
- Script editor and Content editor web part missing in SharePoint Online Office 365
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.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com
Download SharePoint Online Tutorial PDF FREE!
Get update on Webinars, video tutorials, training courses etc.