Can You Embed HTML in Microsoft Sway for Google Verification?
Question details
The user wants to know if they can embed arbitrary HTML code within Microsoft Sway to complete Google site verification.

- Product
- Microsoft Sway
- Device & OS
- not provided
- Scenario
- Attempting to verify ownership of a Microsoft Sway presentation or site using Google's HTML tag verification method.
- Observed behavior
- Microsoft Sway does not accept arbitrary HTML code; its embed feature only supports iFrames and content from a pre-approved list of supported websites.
Confirm whether the Google verification service you are using provides an iFrame alternative, as Microsoft Sway restricts raw HTML embedding for security reasons.
Check Verification Service for iFrame Support
Since Microsoft Sway restricts arbitrary HTML, you must verify if the service supports an iFrame embedding method instead.
Microsoft Sway restricts the embedding of arbitrary HTML code to protect users from malicious scripts. Its embed feature only supports iFrames and content originating from officially supported websites.
Go to your Google Verification service portal and check if there is an alternative option to verify using an iFrame rather than a raw HTML tag.
Log into Microsoft Sway and open the presentation you want to verify.
Click on the '+' icon to add a new Card, select the 'Media' tab, and then choose 'Embed'.
Paste your supported iFrame verification code into the Embed Card. If the source is supported by Microsoft, the content will process successfully.

Submit a Feature Request to Microsoft
If you cannot verify your site due to HTML restrictions, submit feedback directly to the Microsoft Sway development team.
Create and Share Presentations Easily with WPS Office
While Microsoft Sway has strict limitations for embedding custom HTML and verifying ownership, WPS Office provides a robust, free suite for creating professional presentations, documents, and spreadsheets with excellent Microsoft Office compatibility.

Frequently Asked Questions
Why doesn't Microsoft Sway accept arbitrary HTML code?
To protect users from malicious scripts and cross-site scripting (XSS) attacks, Microsoft Sway strictly limits embedded content to iFrames from a pre-approved list of supported and secure websites.
Can I verify ownership of a Sway presentation in Google Search Console?
Generally, it is not possible to verify a standard Microsoft Sway URL in Google Search Console using the HTML tag method, because Sway does not allow you to upload HTML files or insert raw meta tags into the head of the page.
What websites are supported for embedding in Microsoft Sway?
Microsoft Sway supports embedding content via iFrames from major platforms like YouTube, Vimeo, OneDrive, Power BI, and Microsoft Forms. You can find the full, updated list of supported sites in the official Microsoft Sway documentation.




