Create Email Template HTML restrictions
Status: Closed · Asked by demonboy on · 0 views
Hi,
What are the HTML restrictions of the email template? I want to style my layout so can I include CSS like
Hey @demonboy
Can you specify the location where you're attempting to modify the email template using CSS? Additionally, note that inline CSS works, but internal CSS gets stripped.
This is in the trigger Pabbly Email Marketing. I'm building an html email body using the fields from my json capture. Will it get stripped from here and, if so, how do I include it? You can see the workflow here:
https://connect.pabbly.com/workflow/mapping/IjU3NjUwNTZiMDYzMjA0M2Q1MjZmNTUzZDUxMzci_pc

Hey @demonboy
The HTML body supports Inline CSS for styling. You can use online inline editors to modify your HTML code.
Reference -https://www.w3schools.com/html/tryit.asp?filename=tryhtml_css_inline
Sample -
Thanks for that. Should I be building a page from scratch and include the html and body tags? On my email client (Thunderbird) I can get away without, but what is the general protocol?
OK, general consensus is to include the html doc type and body tags so add to avoid quirks mode. This article by Campaign Monitor explains all.
Thanks for that. Should I be building a page from scratch and include the html and body tags?
Yes, you can rewrite or copy-paste the HTML content with inline CSS and try online. And you wouldn't be required to provide the HTML doctype.