Sunday, July 30, 2023
HomeEmail MarketingThe Code Assessment Course of for HTML Emails

The Code Assessment Course of for HTML Emails


Magnifying glass examines email code


“Have you ever checked it in Outlook?”

It’s just like the phrase “have you ever turned it on once more/off once more” for e mail devs. Regardless of what number of occasions you verify pictures, alt textual content, responsiveness, and fallbacks…one thing will get funky in a single e mail consumer or one other. 

In contrast to internet improvement, HTML e mail improvement exists on the whims of finicky e mail shoppers. Inconsistent assist (or random bugs launched by software program updates — belief me, I’ve been there) can derail templates and one-off campaigns. 

That’s why it’s so vital to have an outlined e mail code overview course of. With so many shifting items for a given e mail marketing campaign, you need to have peace of thoughts that you simply’re dotting your i’s and crossing your t’s, metaphorically talking.

We put collectively this complete guidelines we use for each single marketing campaign E mail on Acid by Sinch sends. Learn on or you possibly can obtain a free digital or printable model to your desk.

Soar to a piece on this article:

  1. The essential checks
  2. Is the e-mail optimized for cellular?
  3. How clear is your e mail code?
  4. Do you may have fallbacks in place?
  5. Did you verify the e-mail code for accessibility?
  6. Is the e-mail code optimized for darkish mode?
  7. Instruments to streamline e mail code overview
  8. Obtain the free guidelines

What to verify in the course of the e mail code overview course of

Quick reply: The whole lot.

It doesn’t matter what number of occasions you’ve used the template earlier than, or what number of emails you’ve despatched. Take a look at every thing, each time, particularly with regards to code improvement. Whatever the message, design, or types, it’s as much as you to verify your emails are readable irrespective of the place your viewers is opening them. 

These checks are additionally sensible to comply with should you’re conducting an e mail advertising audit that features an e mail code overview.

email code review checklist thumbnail

Get your e mail code overview guidelines

Wish to refer again to this record? We’ve obtained you. Seize an interactive PDF of our e mail code overview guidelines to be sure you’ve lined all of your bases earlier than launching the subsequent marketing campaign.

Right here’s what you must at all times verify in the course of the e mail code overview course of:

1. The fundamentals checks

First, do a fast rundown of the fundamentals. Begin on the high, naturally, with the header code, to be sure you’ve obtained the suitable DOCTYPE, language settings, in addition to meta tags set for responsiveness, darkish mode, and the right character set. This code not often modifications from e mail to e mail, however you by no means know if there’s a bizarre copy/paste factor happening.

E mail header code snippet

<!DOCTYPE html>
<html lang="en" dir="ltr" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:workplace:workplace">
<head>
  <meta charset="utf-8">
  <meta identify="viewport" content material="width=device-width,initial-scale=1 user-scalable=sure">
  <meta identify="format-detection" content material="phone=no, date=no, deal with=no, e mail=no, url=no">
  <meta identify="x-apple-disable-message-reformatting">
  <meta identify="color-scheme" content material="mild darkish">
  <meta identify="supported-color-schemes" content material="mild darkish">
  <title>E mail title</title>
  <!--[if mso]>
  <noscript>
    <xml>
      <o:OfficeDocumentSettings>
        <o:PixelsPerInch>96</o:PixelsPerInch>
      </o:OfficeDocumentSettings>
    </xml>
  </noscript>
  <![endif]-->
  <fashion>
    :root {
      color-scheme: mild darkish;
      supported-color-schemes: mild darkish;
    }
  </fashion>
</head>

Discover a detailed rationalization of the e-mail header over at GoodEmailCode.com.

For the reason that header code controls the remainder of the e-mail, it’s crucial to verify every thing is right there first. That additionally consists of:

  • Ensuring the e-mail is the right width (not more than 700px max)
  • The code doesn’t consult with an exterior CSS fashion sheet
  • There’s no unsupported components, like javascript or iframes
  • Types conform to e mail code requirements, resembling utilizing 6-digit vs. 3-digit hex codes for colours
  • Pictures are optimized for prime resolutions shows

That is additionally the place you possibly can be sure you’ve coded your tables and ghost tables appropriately in Outlook. And don’t neglect to verify different widespread Outlook rendering points like undesirable white traces, background pictures, and alignment points when utilizing columns.

It’s the basic 80/20 rule at play right here: You’ll probably spend 80% of your time taking a look at solely 20% of your shoppers, and Outlook is essentially the most problematic consumer you’ll run into…however it’s a must to work with it, as a result of it’s nonetheless the third hottest e mail consumer on the market.

2. Is the e-mail code optimized for cellular?

On common, People verify their telephones 344 occasions per day. With over 6 billion cellular customers on the planet, the second most vital verify you can also make is to verify your e mail renders appropriately not simply on desktop shoppers, however on cellular ones, too.

Whether or not you’re utilizing mobile-friendly, responsive, or fluid hybrid e mail design, you’ll need to verify:

  • Button top of no less than 44px
  • Proper font dimension for readability
  • Columns and stacking work appropriately

Code snippet for a min-max width question:

@media solely display screen and (min-width: 400px) and (max-width: 600px)  {...}

3. How clear is your e mail code?

Once you’re constructing on older emails or re-using templates, e mail code can get messy actually rapidly. That’s since you usually must create workarounds or hacks for particular e mail shoppers or performance.

Nevertheless it’s vital to be sure you’re streamlining your e mail code as a lot as doable. Pointless code weighs down your emails and will increase the scale, making them slower to load. Purchasers like Gmail clip emails at 102 kb, so preserve that in thoughts.

Message clipping in a Gmail email

You’ll need to clear up spacing, padding, and your tables to verify every thing works correctly, too. There are a number of instruments on the market that may assist you to consolidate your code to lower the file dimension. I take advantage of E mail Comb or Parcel to take away unused CSS.

Get some recommendation from Parcel founder, Avi Goldman, on find out how to forestall Gmail clipping.

4. Do you may have fallbacks in place?

At the moment’s emails are extra personalised and customised than ever earlier than, and meaning complications for e mail devs. Fallbacks act as placeholders when information isn’t obtainable or supported. For instance, there are font fallbacks (aka font stacks) should you’re utilizing a customized font that an e mail consumer doesn’t assist. 

Instance code snippet for a font stack

A sans-serif inline fashion font-stack may appear to be this:

fashion=”font-family: Helvetica, Arial, sans-serif;”

You need to double-check that you’ve fallbacks in place so even when one thing isn’t supported, your viewers can nonetheless have interaction together with your e mail:

  • Animations or different dynamic content material: Whereas most shoppers immediately assist GIFs, it’s nonetheless vital to verify any animations you’re working with have a nonetheless picture that you could present as a substitute.
  • Personalization fallbacks: Nobody desires to obtain, ‘Hey, $%firstname%$’! Be sure to have copy in place in case there isn’t a primary identify on file, or no matter type of personalization you’re working with.
  • Plain textual content model or a “View in browser” hyperlink: I’m nonetheless stunned how few manufacturers ship a plain textual content model alongside their HTML one. I at all times embody a “view in browser” hyperlink to verify emails are accessible and it’s a last-chance fallback simply in case one thing goes bizarre with the HTML.

For some assist with interactivity and dynamic content material, take a look at among the interactive e mail fallback methods we advocate right here on our weblog.

5. Did you verify the e-mail code for accessibility?

In case your viewers can’t learn or work together together with your emails…then why do all that work? That’s on the core of e mail accessibility: ensuring each member of your viewers can truly obtain the contents of your message. This implies checking for:

  • Alt textual content on all pictures
  • Desk roles set appropriately (function=”presentation”) so display screen readers course of your code appropriately after they learn them
  • Utilizing semantic code, particularly <h> tags for headings and <p> tags for paragraphs, so display screen readers can differentiate between them
  • That darkish mode is working appropriately in all e mail shoppers and never washing out the types (we’ll discuss extra about this in a minute)

Code snippet for setting desk roles

<desk width="100%" border="0" cellpadding="0" cellspacing="0" fashion="width: 100%;" function="presentation">

Utilizing function=”presentation” ensures display screen readers interpret the e-mail as physique copy and never information within the desk.

For extra on all this, together with find out how to use ARIA and code semantic HTML emails, verify our coding accessible emails.

6. Is the e-mail code optimized for darkish mode?

Darkish mode is likely one of the latest additions to this guidelines, and some of the difficult. It’s grow to be fairly common — 44% of e mail entrepreneurs are contemplating the darker UX and one other 28% plan to begin making it a part of the e-mail manufacturing course of quickly. 

The factor about darkish mode is, if it really works, it seems to be nice. But when it doesn’t, your e mail is just about unreadable. Some shoppers flip the colours and others don’t present something in any respect. You need to be sure you’ve coded darkish mode appropriately within the header code of your e mail and optimized textual content and background coloration.

To ensure your emails work in darkish mode, verify that you simply’re:

  • Utilizing clear PNGs
  • Utilizing media queries for darkish mode @media (prefers-color-scheme)
  • Focusing on Outlook.com darkish mode particularly [data-ogsc]

Get some darkish mode e mail code snippets that can assist you develop campaigns for darker settings.

An incredible useful resource to take a look at should you’re unsure whether or not a consumer helps a coding method is supported or not is Can I E mail. And I’ve already talked about Parcel, which is a superb instrument for coding emails because it was constructed by an e mail developer for e mail builders.

The automated e mail guidelines from E mail on Acid by Sinch is one other useful instrument, particularly for double-checking and finalizing e mail code earlier than you hit ship. 

Whereas the e-mail code overview course of looks like quite a bit, at this level, I not often even assume twice about these checks. That’s partially as a result of they’re constructed into the e-mail improvement course of for each e mail we ship, and partially as a result of E mail on Acid takes care of a number of key checks routinely. 

Since you possibly can preview your work as many occasions as wanted with E mail on Acid, you possibly can tinker together with your code till you’re 100% happy. That’s the great thing about our limitless e mail testing.

email code review checklist thumbnail

Get your e mail code overview guidelines

Wish to refer again to this record? We’ve obtained you. Seize an interactive PDF of our e mail code overview guidelines to be sure you’ve lined all of your bases earlier than launching the subsequent marketing campaign.

Creator: Megan Boshuyzen

Megan is a graphic designer turned e mail developer who’s labored on all points of e mail advertising. She believes good emails for good causes make a constructive distinction on the planet. Megan is at the moment working as an e mail developer for Sinch E mail. Go to her web site and study extra at megbosh.com.

Creator: Megan Boshuyzen

Megan is a graphic designer turned e mail developer who’s labored on all points of e mail advertising. She believes good emails for good causes make a constructive distinction on the planet. Megan is at the moment working as an e mail developer for Sinch E mail. Go to her web site and study extra at megbosh.com.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments