Create, upload, edit, and publish HTML pages in SharePoint
Updated Oct 22, 2026
Version 2.0Nicole Woon After being notified by another one of your customers and further testing we can confirm that when an Owner sets File types > Allow HTML files to Off, all it does it hide the Create HTML file option in the Pages library. However, it doesn't actually do anything else including blocking HTML pages as Microsoft have described.
You can still:
Effectively, the Allow HTML files is all smoke and mirrors and doesn't block anything - effectively there is ZERO opt-out at the moment.
Can Microsoft confirm if they will actually implement a true opt-out option for this? Currently, contrary to what Microsoft are saying, there is no option for an Owner to stop this.
Again, we (and sure a lot of your customers - especially large companies) want this disabled by default at the Tenant level and have your "valued" customers decide how they want to roll them out - not Microsoft decide what their customers want/need.
See screenshot below that used Copilot to create an HTML page (which does create the HTML page) with Allow HTML files set to OFF.
Thank you for reporting the issue. If the setting is disabled, you should not be able to upload HTML to the pages library (whether through drag and drop or through the +Create or upload menu) nor move or copy HTML from a document library into the pages library. We are investigating the issue where Copilot can create an HTML page even when the setting is disabled.