Embedding or displaying .xhtml page in Canvas?

Jump to solution
amorriso
Community Explorer

I would like to post an xhtml file to my course page, but when I upload it I don't get a preview of it, and no matter how I try embedding it (iframe, etc) I always get the page downloaded back to the computer and not displayed on a Canvas page.  Is it possible to diplay within Canvas?

Thanks.

1 Solution
jared
Instructure Alumni
Instructure Alumni

Hi Andrew,

For context, XHTML (HTML written in XML) was the preferred standard for web pages -- before HTML 5. XHTML web pages typically just use the extension .htm or .html -- the same as regular HTML web pages.

If you actually use .xhtml as the file extension, web browsers may misinterpret what the file is meant to be (application/xhtml+xml as opposed to text/html).

If you use .html on your XHTML files, your browser will render them properly when uploaded into a Canvas course's Files area.

View solution in original post