Safe markup for HTML email

2019-03-18 10:53发布

问题:

Email clients are limited in their HTML display capabilities.

What HTML markup and CSS styles is it safe to use in HTML-formatted email?

回答1:

In general you want to stick to 10+ years old HTML.

Avoid trying to link to external stylesheets and avoid styles in the HEAD.

Use inline styles.

Use HTML tables for layout.

Industry standard is to stick to width of 600px or less for your email content.

This is a good guide: http://kb.mailchimp.com/article/how-to-code-html-emails



回答2:

Some useful links on this subject detailing which clients support what markup and style:

  • http://www.campaignmonitor.com/css/
  • http://www.email-standards.org/

Places you can get help building cross-client HTML e-mail:

  • https://www.mailrox.com/
  • https://www.getfractal.com/