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

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).


Variables and Handlebars
HTML blocks support variables using the{{variable}} syntax and the full range of Handlebars helpers, including {{#if}} for conditional logic and {{#each}} for looping over arrays.
For example, you can iterate over a data.items array to build a custom list:

Variables and Handlebars expressions in HTML blocks only resolve on actual send; during preview mode, you 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.
Related
Variables
Dynamic content in code
Email-Safe Formatting
Tips for reliable HTML and CSS