Yes. A lesson's Embed block takes HTML code, iframe code and links from Canva, Figma, Miro and many other sites, and shows them working inside the lesson. The Code block is different: it shows code as text for students to read.
Put your own HTML or iframe code in a lesson
- Copy the code: a snippet, a whole page, or the iframe code a site gives you to embed something.
- In your lesson, click at the start of an empty line, type / and pick Embed.
- Paste the code into the Embed Media window and select Embed.
- 1 Paste your HTML or iframe code here.
- 2 Select Embed.
Your code runs in its own frame in the lesson, and the frame grows to fit what it draws. Scripts in it run too.
A very long page can be too big for one embed. If yours won't embed, split it into two Embed blocks.
Embed a Canva design or presentation
- In Canva, share the design so anyone with the link can view it, then copy its embed code, or its view link (the one ending in /view).
- In your lesson, type / on an empty line and pick Embed.
- Paste the code or link and select Embed.
Figma, Miro, Google Slides and most tools that offer an embed code work the same way. There's no direct connection to Canva, so a design you want to keep as a file goes in by exporting it from Canva and uploading it: see Upload and organize files in your library.
What the Code block does
Type / and pick Code, or select Text style and then Code, to show code in a fixed-width font. Students can read and copy it, and it never runs. HTML typed into the lesson text shows as text too; only Embed turns code into a working page.
How do students see my HTML lesson as text, not code?
Pick a way by how you want to edit it later:
- Embed it as above. It shows as a page inside the lesson, and you change it by editing the code.
- Open the HTML file in your browser, copy the page as it looks, and paste it into the lesson. Headings, lists, bold words and links usually come with it, and from then on it's ordinary lesson text you edit like any other.
- Ask the AI assistant to put it in the lesson for you: see Let the AI assistant write or edit a lesson.
To restyle your whole course instead, see Add custom CSS. For tracking scripts or a chat widget, see Add Google Analytics, a pixel or a chat widget.