Embed a web page in a SharePoint web part


To display another page or source (i.e. Facebook, Vimeo) on a SharePoint page, you can use an iFrame.

  1. Go to your site and Edit the page.
  2. Select the +. Search and select the Embed web part.
    • For YouTube and Twitter, search and select for their web parts.
  3. On the right-hand pane, paste the embed code in the Website address or embed code field.
    • If the webpage didn't offer to generate code, copy this snippet and add the URL: <iframe src="url" width="100%" height="3000px"></iframe>

This can be used to embed a Microsoft Forms survey's results. Go to the form, open the Responses tab, and select the ellipses (...) to Create a summary link. Paste this link into the url section of the code in step 3.

Adding Domains to the iFrame White-list

If you get an error when trying to embed a link to another source, the URL needs to be white-listed. Only the site administrator can do this.

  1. Go to the site, select the gear icon (top right) > Site contents > Site settings > HTML Field Security.
  2. Paste the URL in the Allow iframes from this domain field. Select Add > Save.
    • Remove https:// from the URL before adding it.

More resources