If you are trying to embed an HTML code into your SharePoint page using the embed web part and you get an error:
![This embed code doesn't seem to work. We only support iframe based embeds. This embed code doesn't seem to work. We only support iframe based embeds.](https://code2care.org/sharepoint/fix-this-embed-code-doesnt-seem-to-work-we-only-support-iframe-based-embeds/images/This embed code doesnt seem to work. We only support iframe based embeds..jpg)
Well, as the error says, you can only embed the iframe of a source URL and not HTML code.
Example of iframe embed.
<iframe src="https://code2care.org/sharepoint/show-videos-on-sharepoint-page" width=300 height=300>
![Adding iframe SharePoint Embed Adding iframe SharePoint Embed](https://code2care.org/sharepoint/fix-this-embed-code-doesnt-seem-to-work-we-only-support-iframe-based-embeds/images/Adding iframe SharePoint Embed.jpg)
Facing issues? Have Questions? Post them here! I am happy to answer!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org