You can embed HTML in the Rich Content Editor. When creating custom HTML coding in Canvas, you may discover that certain HTML codes do not work upon saving. This is because Canvas will only support certain HTML elements for security reasons. This also applies to content copied and pasted from an external source. Below is a link to a list of HTML tags that are permissible in Canvas. HTML tags that are not on this list may be stripped out of the Rich Content Editor when you save your work. View the Canvas HTML Editor Allowlist PDF for more information.
The HTML Editor in the Rich Content Editor can display HTML in either a pretty HTML editor with numbered lines and syntax highlighting or a raw HTML editor that displays HTML as raw text.
Several features in Canvas support the Rich Content Editor, including Announcements, Assignments, Discussions, Pages, and Quizzes.
Note: The Rich Content Editor saves the last used HTML editor state (raw or pretty). This persists across browser tabs and windows.
Open Rich Content Editor
Open the Rich Content Editor when using one of the Canvas features which support the Editor.
Note: The Rich Content Editor supports keyboard shortcuts. To view the Keyboard Shortcuts menu, click the Keyboard icon or press ALT+F8 (PC keyboard) or ALT+FN+F8 (Mac keyboard).
Edit HTML Content
The HTML editor displays the pretty HTML editor by default. The pretty HTML editor displays line numbers and syntax highlighting.
Enter content in the HTML editor or edit existing content using HTML.