The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
I have an HTML file that I've uploaded to Canvas. I would like to embed this HTML page in an assignment page. Ideally I'd like to turn off the "download" option as well.
To repeat: this webpage is NOT hosted elsewhere: I uploaded it to Canvas files. I'd just like a way to embed it inline into an assignment page.
Solved! Go to Solution.
Hello @boyland,
That makes sense for why you can't directly enter the code in the RCE. If you have access to account admin, you could probably write some custom JavaScript or CSS that would remove/hide the extra download link, but that doesn't seem the most practical.
I know you said you currently have the file hosted on Canvas, but have you considered free hosting on other websites like GitHub Pages, Replit, or Glitch? This may work better for embedding the web page without the extra parts and would make it easier to make changes to the file if necessary. Here are instructions for embedding with Replit: https://docs.replit.com/repls/embed
Hello.
I frequently do this without any download link or title.
Is there a reason, you aren't just copying the code from the body of the HTML file into the HTML editor for the assignment? Are you using JavaScript and/or internal CSS in your HTML file?
Yes indeed. The HTML has thousands of lines of JavaScript (it was generated by "Twine"). Pasting the entire 150K of HTML (including CSS and JavaScript) into the HTML editor yielded a page that (1) interfered with the surrounding Canvas page and (2) didn't work anyway.
So I'm looking for a way to embed a frame with the HTML in it. An iframe would be nice, but it seems Canvas don't want to directly expose the file, and instead wants to surround it with headers. I was wondering if there were some incantations that removed these things.
Hello @boyland,
That makes sense for why you can't directly enter the code in the RCE. If you have access to account admin, you could probably write some custom JavaScript or CSS that would remove/hide the extra download link, but that doesn't seem the most practical.
I know you said you currently have the file hosted on Canvas, but have you considered free hosting on other websites like GitHub Pages, Replit, or Glitch? This may work better for embedding the web page without the extra parts and would make it easier to make changes to the file if necessary. Here are instructions for embedding with Replit: https://docs.replit.com/repls/embed
Yes, it seems that Canvas doesn't provide a way to host files directly. Thanks, I'll pursue non-Canvas options.
Hello.
I frequently do this without any download link or title.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.