Content templates
...
Content management
Custom HTML
6 min
the custom html content block allows you to easily add your own html code to a design created in the editor it’s as simple to use as a text block html experts only using your own code may affect how the message is rendered this could prevent it from adjusting to the screen size (i e the "responsiveness" of the message) make sure to use html that is email compliant and responsive keep in mind that custom html is often outside of our scope of support why use custom code? there are many scenarios in which it makes sense to add your own html code adding more customized content you are not limited by a set of predefined parameters this allows you more granular control of the styles applied adding html 5 video, anchor links, etc you can now add content that is not available as a standard content element in the editor (html 5 video, anchor links, etc ) adding advanced effects with css get creative with animations! please note that animation effects are not widely supported by email clients however, when managed correctly, they can help your message go viral note that css can only be used in the html content block when designing pages adding live content from external providers custom html allows you to use advanced content in your designs for example, you could create product recommendations, dynamic ads, personalized maps, or countdowns just copy and paste the code provided to you by the vendor that you are working with how do i add my html code? to add your code just drag an html content element into your message it works much like other content blocks, so you can place it anywhere in your design the newly inserted content block will show some placeholder text click on it and the right side property panel will display the html code editing pane you will find some placeholder code inside the editing area paste your own html code or write it directly in the editing area the system will highlight your syntax and indent your code to make it more readable which html tags are allowed? note that this section applies only to custom html when used in the email editor for information about using custom html in the pages editor, see the section below when using custom html in the email editor, a code sanitizer will validate your code it will automatically correct some issues such as html tags that are left open it will also strip out code that isn't often supported by email clients for example, script and iframe tags are removed since they often cause deliverability problems or security risks using custom html with pages the pages editor does not use the same sanitizer you'll find in our email editor this means that it will not strip out syntax nor will it fix any issues in your code this is because browsers aren't likely to have limitations seen in email clients if you want to use custom html on your landing page, you have complete freedom to do so
