If you are trying to embed an HTML code into your SharePoint page using the embed web part and you get an error:
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>
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