as part of migration lot of html files have been moved to SharePoint 2013 to online. but the html files not working on the online.

1 Answer 1


You can Display the HTML page with Content Editor Web part (CEWP) by mentioning the location of the HTML file.

In SharePoint Online multiple links can be generate for an single item and here some links i have pasted below

Copy Links option : https://Tenant.sharepoint.com/:u:/r/Document/test.html?csf=1&e=RJulJe

Direct URL of File: https://Tenant.sharepoint.com/Document/Forms/AllItems.aspx?id=%2FDocument%2Ftest%2Ehtml&parent=%2FDocument

So the above mentioned URL will not work to display the HTML page in CEWP, just provide the URL like https://tenant.sharepoint.com/sites/Documentlibrary/filename.html (this direct URL required to display the HTML page)

enter image description here

  • I have more than thousand html files in the document library, need to display it by click over the html file. required option other than embedding . Thanks for your response @thivagar
    – JishinK
    Commented Oct 1, 2018 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.