You can now create, upload, edit, and publish HTML pages in SharePoint



 Microsoft SharePoint Blog:

We're excited to share that you can now create HTML pages in SharePoint. Describe what you want and let Copilot build it for you, or upload an HTML file you've already crafted. HTML pages live in the Site Pages library, right alongside your existing modern pages. That means you can edit, publish, and share them using the same familiar flow you already know.

The sky is the limit in terms of what you can build, from a project status page connected to live data; an onboarding page with the latest guidance for new hires and a timeline of key milestones; or a visual identity guide with recommended colors, voice, and imagery.

You might not see this feature yet. Some functionality is introduced gradually to organizations that have opted in to the Frontier public program in Microsoft 365.

See this video with Nicole Woon and Vesa Juvonen for the live demo of new features.


What's available​

Here's a quick look at everything you can do with HTML pages today. To learn more, visit the support documentation for HTML pages.

Creating and uploading
  • Create with Copilot in SharePoint. Type a prompt, attach files for extra context, and Copilot in SharePoint drafts a brand-aligned page in moments.
  • Upload what you already have. Bring in a single HTML file or a whole HTML folder; supporting assets such as images and videos land in Site Assets automatically. If you already have existing HTML in your document library, you can easily move it to the Site Pages library via Move to or Edit in SharePoint from the document library.
  • There are new entry points to create or upload an HTML page, including:
  • On any page of a site, “HTML page” as a new option in the +New menu in the command bar
  • On the Publish landing page, “HTML page” as a new option from the +Create menu
  • In the site pages library, “Upload HTML page” or “Upload HTML folder” as new options from the +Create or upload menu
  • In a document library, “Edit in SharePoint”
Editing and publishing
  • Make changes your way by editing text directly on the canvas or asking the Copilot in SharePoint chat pane for broader content and design updates. No HTML coding is required.
  • HTML pages respect draft and publish states just like modern pages, making it easy for you to control when you’re ready to share content with your audience.
  • Make your page engaging by incorporating rich media like images and videos, interactive elements like animations, and more so that your content pops.
  • Go beyond static content. Pages can show live data upon refresh from SharePoint lists, Excel, and CSV. There is also built-in support for a select list of external libraries (Chart.js, Mermaid, React, Fluent UI, and Babylon).
Viewing
  • With your site’s header, navigation, and footer surrounding page content, HTML pages feel like a natural part of your site.
  • Sharing and managing
  • Share your HTML page directly with the people and groups that need to see it.
  • Send your HTML page as an email with rich content so that you can easily communicate with your audience.
  • See the impact of your content through page analytics.

What to expect and who can do what​

HTML pages are enabled by default, so most of you can dive right in.

If the setting has been turned off for a site, a site owner must allow HTML files in the Site Pages library before authors can create or upload HTML pages. Go to the Site Pages library, select File types on the command bar, and turn on Allow HTML files.

Who can do what​

You only need a Microsoft 365 Copilot license for the Copilot-powered experiences. Everything else works with the SharePoint permissions you already have.

Task​
Required access​
M365 Copilot license required​
Open the HTML page creation screen from + New on a site or + Create on the Publish landing pagePermission to create or edit pagesYes
Create or edit a page with the Copilot in SharePoint chat panePermission to create or edit pagesYes
Upload or move HTML content to the Site Pages libraryPermission to add or move filesNo
Edit page content directlyPermission to edit the pageNo
Publish or share a pagePermission to publish or share the pageNo
View a published pagePermission to view the pageNo


HTML page FAQs​

How do you keep HTML pages secure?​

SharePoint renders HTML in a sandboxed iFrame that isolates the page from the surrounding SharePoint header, footer, and navigation. Content Security Policy (CSP) rules provide extra isolation. SharePoint blocks arbitrary fetch requests and outbound API calls from HTML pages, and does not support CDN-hosted scripts or cross-tenant communication.

A select list of external libraries (Chart.js, Mermaid, React, Fluent UI, and Babylon) is supported and hosted on a Microsoft-managed CDN. JavaScript is supported when the code is contained in the same HTML file; it does not support JavaScript loaded from a CDN or an open-source library location. The sandbox cannot access the browser localStorage.

Why can't I open a link on my HTML page?​

If a link doesn't open on your page, it might not be content from an approved domain. This behavior is by design based on how SharePoint renders HTML pages.

A site admin must add the domain to the site's allow list:
  1. Go to Settings, select Site information, and then select View all site settings.
  2. Select HTML Field Security.
  3. Add the relevant domain to the allow list.
  4. Save your changes and refresh the page.
  5. Once the domain is allowed, the link should open correctly.

Does SharePoint apply site branding to an HTML page?​

Pages created with Copilot use the site's branding. SharePoint doesn't automatically apply site branding to uploaded HTML, but you can ask Copilot in SharePoint to update the page to match the site.

Can HTML pages be turned off for the whole tenant?​

No, not at the tenant level. Site owners can disable HTML in the Site Pages library for an individual site.

We can't wait to see what you build​

HTML pages open up a whole new world of creativity in SharePoint, and we're thrilled to put them in your hands. Whether you're sharing a project update, celebrating your team, or communicating organization-wide information, we'd love to hear how it goes. Share your feedback through the “Submit feedback to Microsoft” button, with the thumbs up and thumbs down buttons in the Copilot in SharePoint pane, or through existing SharePoint support channels.


 Source:

 

Latest Support Threads

Back
Top Bottom