Insert your own HTML into a lesson
Add an HTML block for a self-contained interactive diagram or small exercise. Paste the HTML with the styles and script it needs. The code runs in an isolated frame without external network access, so include everything it needs inside the block. For material already hosted elsewhere, use external embed.
Where to find it
In the relevant lesson in the original course.
Before you start: You need editing access.
- Select Add a block here, choose HTML, and select Insert.
- Paste the code in HTML source. Set Height and select Save.
- Result: The lesson shows the saved HTML block.
Set a title, a short instruction for learners, and a height between 160 and 1600 pixels. Save and preview the block to check that it fits and can be read, then test the published version as a learner. Results inside the HTML do not contribute to the course grade. PDF provides a text representation of the block.