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>

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!