โ† Back to Platform-Specific

Responsive email templates with multi-client compatibility

HTMLHTML Email Structure

HTML structure optimized for email compatibility

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Email Template</title>
  <!--[if mso]>
  <noscript>
    <xml>
      <o:OfficeDocumentSettings>
        <o:PixelsPerInch>96</o:PixelsPerInch>
      </o:OfficeDocumentSettings>
    </xml>
  </noscript>
  <![endif]-->
</head>
<body style="margin:0;padding:0;background-color:#f4f4f4;">
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center">
        <!-- Email Content -->
      </td>
    </tr>
  </table>
</body>
</html>
TYPESEmail Template Types

Templates adapted to different use cases

๐Ÿ“ฐ Newsletter Template

NEWSLETTER
Weekly Update #42
Article Title

Brief description of the article content...

Another Article

More interesting content for readers...

  • โ€ข Header with branding and number
  • โ€ข Article sections with images
  • โ€ข Main call-to-action
  • โ€ข Footer with unsubscribe

๐Ÿ’ณ Transactional Template

Order Confirmation
#ORD-2024-001
Product Name$29.99
Shipping$4.99
Tax$2.80

Total$37.78
  • โ€ข Clear transaction information
  • โ€ข Purchase summary
  • โ€ข Main tracking action
  • โ€ข Support contact information
RWDResponsive Techniques

Approaches to make emails responsive

๐Ÿ“ฑ Media Queries

@media only screen and (max-width: 600px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .column {
    width: 100% !important;
    display: block !important;
  }

  .mobile-hide {
    display: none !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }
}

๐Ÿ“Š Fluid Tables

<table width="100%" cellpadding="0" cellspacing="0">
  <tr>
    <td class="container" style="max-width:600px;">
      <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
          <td class="column" width="50%" valign="top">
            Column 1
          </td>
          <td class="column" width="50%" valign="top">
            Column 2
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
CLIENTSClient Compatibility

Feature support by email client

FeatureGmailOutlookApple MailYahoo
CSS3โœ“โœ—โœ“~
Media Queriesโœ“โœ—โœ“โœ“
Background Imagesโœ“โœ—โœ“~
Flexbox~โœ—โœ“โœ—
Web Fontsโœ“~โœ“โœ“
โœ“ Full support~ Partial supportโœ— No support
TIPSEmail Best Practices

Tips to optimize deliverability and engagement

โœ… DO

  • โ€ข Use tables for layout
  • โ€ข Inline styles for compatibility
  • โ€ข Alt text for all images
  • โ€ข Test on all major clients
  • โ€ข Short and clear preview text
  • โ€ข Visible unsubscribe link
  • โ€ข Optimize images (< 1MB total)
  • โ€ข Fallback for disabled images

โŒ AVOID

  • โ€ข External CSS or in <head>
  • โ€ข JavaScript (not supported)
  • โ€ข Unsupported CSS3 properties
  • โ€ข Spam trigger words
  • โ€ข Unbalanced image/text ratios
  • โ€ข Complex forms
  • โ€ข Non-standard web fonts
  • โ€ข Links without http/https protocol
TOOLSEmail Testing Tools

Recommended tools for testing and optimizing emails

๐Ÿงช Email on Acid

Complete multi-client testing with screenshots

๐Ÿ“ง Litmus

Preview and engagement analytics

๐ŸŽฏ Mail Tester

Deliverability score and spam detection