Create Email Template HTML restrictions

Status: Closed · Asked by demonboy on · 0 views

demonboy — Question ·

Hi,

What are the HTML restrictions of the email template? I want to style my layout so can I include CSS like

Pabblymember11 — Reply ·

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.

Pabblymember11 — Reply ·

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 -

demonboy — Reply ·

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?

demonboy — Reply ·

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.

Pabblymember11 — Reply ·
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.

Back to all forum threads · Log in to reply