Forum Discussion

AndreGuildus's avatar
AndreGuildus
Copper Contributor
Aug 08, 2025

HTML Redenrization

Hi everyone!

I need help rendering HTML in a SharePoint web part. I've tried several approaches, but they never get the results I need.
The HTML file is saved in a documents folder within SharePoint itself.

HMTL file location

 

 

 

 

 

 

 

 

 

I wish he would redeem it and stay that way.

 

 

 

 

 

 

 

 

However, when using Embed, it redefines but brings this viewer background with it.

 

 

 

 

 

 

 

 

 

 

Can someone help me, I'm out of ideas.

 

2 Replies

  • TechKooks's avatar
    TechKooks
    Copper Contributor

    you’ll want to check if the html/css you’re using is actually compatible with modern browsers — sharepoint tends to strip or change older markup.

     

    a couple things that help:

     

    • make sure you’re using html5 + modern css (not legacy tags/attributes).
    • test the same code in a plain html file in edge/chrome to confirm if it’s sharepoint or the code itself.
    • if you’ve got a lot of pages with the same issue, you can use pnp powershell to batch update or clean up the html/css across sites instead of doing it manually.

     

     

    that usually clears up most rendering problems without needing a full rebuild.

  • ExtenonSpare's avatar
    ExtenonSpare
    Copper Contributor

    Check whether the page HTML/CSS code in SharePoint is compatible with modern browser standards, and use PnP PowerShell to batch fix rendering issues.

Resources