Others

Can You Embed HTML in Microsoft Sway for Google Verification?

Olivia MillerOlivia Miller Oct 26, 2026 868 views

Question details

The user wants to know if they can embed arbitrary HTML code within Microsoft Sway to complete Google site verification.

Can You Embed HTML in Microsoft Sway for Google 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.
Before you start

Confirm whether the Google verification service you are using provides an iFrame alternative, as Microsoft Sway restricts raw HTML embedding for security reasons.

Solution 1Recommended

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.

1
Review verification options

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.

2
Open your Sway

Log into Microsoft Sway and open the presentation you want to verify.

3
Insert an embed card

Click on the '+' icon to add a new Card, select the 'Media' tab, and then choose 'Embed'.

4
Paste the iFrame code

Paste your supported iFrame verification code into the Embed Card. If the source is supported by Microsoft, the content will process successfully.

Check Verification Service for iFrame Support
Unsupported Code Restriction: If the required verification code is not supported by Microsoft Sway's iFrame parameters, you will not be able to embed it directly.
Free Microsoft Office alternative

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.

Free, lightweight, and easy to use for all your document needsHigh compatibility with Microsoft PowerPoint (.pptx), Word (.docx), and Excel (.xlsx) formatsRich built-in templates to design stunning presentations quicklySeamlessly migrate from Microsoft Office with a highly familiar user interface
microsoft office alternative - wps office

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.