Embed HTML inside Notion

List view
Getting started
Managing content in Notion
Understanding Bullet dashboard
Hosting
Membership/Content Gating
Blog
Knowledge base
SEO and metadata
Liquid Syntax
API Documentation
Billing
How to's
Troubleshooting
Themes

How to Embed HTML inside Notion

You can use Notion code block to write any HTML inside Notion and render them in the webpage. You can use this to display any forms, images, newsletter signups etc.
To embed HTML inside Notion and render it on the webpage, you have to
  1. Create a code block in Notion
  1. Click on Caption
  1. Add caption as "bullet:HTML". Bullet will automatically embed any HTML code inside this section in the specific part of the webpage.
notion image
The above code utilizes a combination of custom HTML embed and merge tags. See how {% page_cover %} is used inside the HTML img tag so that it renders page_cover in the body of the website.