How do I add custom HTML code?

Modified on Tue, 30 Jun at 11:56 AM

The HTML block allows content creators to embed custom code directly into their course content. This enables custom layouts, interactive elements, and third-party tool integrations—such as Google Forms, Edpuzzle, Padlet, Canva, and VoiceThread. Only HTTPS embed codes are supported, ensuring all embedded content is delivered securely.  


  1. Navigate to the page and select Edit this Page. Find the position where you want to add a block and select the plus (+) icon.
    Screenshot of a blank content page in Edit mode.

  2. From the dropdown, select Add Block.
    Screenshot of a pop up menu that prompts users to Add Block, Paste from Clipboard, and Add Boilerplate Template

  3. In the Add Block modal, either:
    • Use the Search field to find a block by keyword
    • Select a block from your custom list of Favorites
    • Scroll through the list of All Blocks to select one
    • Use the various Categories to filter by block type
    • Select a star icon to add or remove blocks in your Favorites listscreenshot of add block with the HTML block showing

  4. Select the HTML block. The Add HTML form will open.
    HTML block blank form

  5. Type or paste in the HTML code and select Add Block+.
    screenshot of html block with code pasted in|
  6. The new block will appear on the page in Edit Mode with a red, dotted outline indicating it's editable.
    sample html block showing a google form in edit mode

  7. Select the Publish My Edits button to save the block to the course page and see the content as it will appear to learners
    sample published html block showing an embedded google form
        

Troubleshooting

  • Only HTTPS embed codes are supported — if your content isn't displaying, check that your embed code isn't using HTTP.
  • The HTML block validates the code you enter to catch common issues, but it's best to double-check your code before pasting it in. AI tools can be helpful for spotting syntax errors or malformed code ahead of time.
  • If your code contains errors, the HTML block may display an error message in edit mode. Review your code carefully and re-paste a corrected version to resolve it.
    HTML error message that says invalid HTML

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article