The HTML Content Block lets you insert your own custom HTML designs. It works like any other content block but is intended for users comfortable writing HTML, as custom code can affect layout, responsiveness, and rendering across devices and clients.
Quick Reference (Advanced Users) – Click to Expand
- Insert: Drag the HTML block into your layout.
- Edit: Replace placeholder code directly or use the EXPAND editor.
- Email rules: Script/iframe tags removed; sanitizer enforces safe HTML.
- Use cases: Live content, vendor embeds, special formatting, anchor links.
- Visibility: Supports hide on mobile/desktop.
Why Use HTML?
Custom HTML is useful when you want to go beyond the standard composer features. Examples include:
- Customized styling: Perfect for fine-tuned formatting beyond block settings.
- Special elements: Insert HTML5 videos or anchor links.
- Advanced CSS effects: Subtle enhancements for landing pages (email support varies).
- Live content: Add countdowns, product feeds, or other real-time elements using vendor code.
How to Add HTML
-
Insert the block: Drag the HTML Content Block into your design.
- Edit the code: Select the block to open the HTML editor in the sidebar. Replace the placeholder code with your own. Syntax highlighting and indentation assist with readability. Click EXPAND to work in a larger editing window.
HTML Tag Restrictions
When you add custom code, a built-in sanitizer checks your HTML and removes unsupported or unsafe elements. Tags like <script> and <iframe> are stripped in email designs to prevent security, rendering, and deliverability issues.
Allowed HTML Tags:
- Common HTML tags such as
a,abbr,address,area,b,bdo, etc. - Supported attributes include
style,id,class,data-*,title,href,name,target, etc.
Formatting
A Block option is available to hide on mobile or desktop, allowing you to tailor advanced HTML for specific devices.