HTML blocks
Updated November 9, 2026
An HTML block holds HTML you write or paste. Use it for what a text block can’t do: images such as a logo or signature graphic, tables, boxes with borders and backgrounds.
- Click + Add HTML Block. The editor opens.
- Paste or type your HTML. Merge tags such as
{Name:1}work here too. - Click Save & Close, then drag the block’s row to where it belongs.
In the builder, the block shows an HTML BLOCK badge and the start of its text. A block with only an image shows <html>; an empty block shows (empty HTML block).
What’s allowed
| Allowed | Removed when you save |
|---|---|
Headings, paragraphs, lists, links, div and span | script tags and JavaScript |
| Tables, including borders and cell padding | iframe, embeds and video |
Images (img) | Forms and form inputs |
Inline styles (style="…") | style tags; use inline styles instead |
Images
- Use the image’s full address, starting with
https://, for example from your Media Library (open the image and copy its File URL). - The image must be reachable when the PDF is made. Images on private or password-protected pages won’t load.
- Set the size with
width, for example<img src="https://…/logo.png" width="200">.
Styling
PDFs are drawn by mPDF, which understands most simple CSS: colors, fonts, borders, padding, margins, widths, text alignment and tables. It doesn’t support modern layout CSS such as flexbox or grid. To place things side by side inside an HTML block, use a table, or put separate blocks side by side in a row.
Check every HTML block with Preview. What the browser shows and what mPDF prints can differ.
Thanks for letting us know.
