Embed HTML inside Notion

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 in 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 combination of custom html embed and merge tag. See how {% page_cover %} is used inside HTML img tag so that it renders page_cover in the body of the website.