Skip to main content
HTML blocks let you add raw HTML or other markup to your notification content. Use them when you need full control over markup (e.g. tracking pixels, custom layouts, or channel-specific HTML).

Adding an HTML block

  1. In Design Studio, select a channel.
  2. Add an HTML block from the block sidebar or toolbar.
  3. Enter your HTML in the block editor.
HTML block in Design Studio

HTML editor

The HTML block offers an inline code editor in the right panel. Enter standard HTML (like <div>, <table>, or <img>) and inline CSS for custom layouts or tracking (e.g., analytics pixels).
HTML editor in Design Studio
Changes in the editor appear instantly in the canvas preview. You can see your updates reflected in real time as you type.
HTML example in Design Studio
Click the expand icon in the top-right corner of the code editor to open a larger editing window.

Variables and handlebars

HTML blocks support variables using the {{variable}} syntax and handlebars helpers like {{#if}} for conditional logic.
Handlebars and variables in HTML block
Variables ({{variable}}) and handlebars ({{#if}} etc) in HTML blocks only resolve on actual send; during preview mode, you’ll see the raw syntax, not sample values.

Best practices

  • Keep markup minimal and test across channels.
  • Use variables for dynamic content rather than hardcoding.
  • Validate your HTML and CSS to avoid rendering issues in different email clients.