a11y
a11y
a11y is a numeronym that stands for accessibility. It is used to refer to the practice of making content accessible to people with disabilities.There are many aspects to accessibility in HTML emails: using HTML text, providing alt text for images, ensuring good color contrast, decently-sized click targets and much more.Accessibility is very important and a huge domain in itself, but if you want to dive deep into accessibility for HTML emails we recommend starting from Wilbert Heinen’s Accessible Email documentation on GitHub.
Hybrid email
Hybrid email
In email coding, a hybrid email refers to the coding approach used to develop an HTML email that adapts in width to the screen size in any email client, no matter if it supports media queries or not.The most common way to code hybrid HTML emails is to start with a fluid layout that uses percentage-based widths for the main table elements. A
max-width CSS property is then used to control the layout width on larger screens.Finally, ghost tables are used to control the layout width in MS Outlook on Windows.Ghost table
Ghost table
A ghost table in HTML email development is a table structure split into two parts, each commented-out through Outlook conditional comments.Ghost tables are primarily used to control the layout width in MS Outlook on Windows when coding hybrid HTML emails.
GANGA
GANGA
GANGA is an acronym that stands for Gmail Android with Non Gmail Account. It refers to users who check their non-Gmail email accounts (like Yahoo!) in the Gmail Android app.This is important to consider when coding HTML emails, as the Gmail Android app does not support embedded (Together with Outlook on Windows which only supports the first class in a class attribute, GANGA is one of the main reasons we use inline CSS in HTML emails.
<style>) CSS when checking non-Gmail accounts:Gmail clipping
Gmail clipping
Gmail clipping is a term used to describe the way Gmail cuts off the content of an email that exceeds a certain weight. This is thought to be around 102KB, but it can also be triggered by some special characters, like ©, no matter the email size.Image size does not affect Gmail clipping, only the HTML weight of the email does. So it’s fine if you use a large HERO image that is 200KB for example.Another thing to consider is that your ESP might add some extra weight to your email, usually by rewriting your URLs to their own so that clicks and opens can be tracked.
Preview text
Preview text
Preview text, also known as preheader text, is the text that appears in the inbox list view, after the subject line. It is used to provide additional context to the recipient and encourage them to open the email.There are many ways to code preview text for HTML emails, and techniques constantly evolve as email clients change their rendering behavior, specifically around how they handle characters used for spacing.Currently, this is the preview text we recommend using:The In Maizzle, you can take advantage of the loop tag and clean up the code quite a bit:
 ͏ sequence is repeated aprox. 150 times to ensure that nothing is shown after the preview text - most email clients would normally show text from the top of the email body after the preview text.Note that this can increase the risk of Gmail clipping, as it adds a few extra KB to your email’s weight.
Web fonts
Web fonts
Web font, or custom fonts, are fonts that are usually not available on most devices. They are loaded from a server and embedded in the email using the
@font-face CSS rule.See our custom fonts guide for more information.Web-safe fonts
Web-safe fonts
Web-safe fonts are fonts that are pre-installed on most devices. They are safe to use in HTML emails because they are likely to be displayed correctly across different email clients and operating systems.Some examples of web-safe fonts are Arial, Times New Roman, and Georgia.
Image blocking
Image blocking
Image blocking is a feature in email clients that prevents images from being displayed by default. This is done mainly for privacy and security reasons, as images can be used to track email opens and gather information about the recipient.When images are blocked, the email client will usually display a placeholder instead of the image. Most email clients will show alt text if the image provides it, but some don’t.As a rule of thumb, always make sure all images have descriptive alt text and that the email is still readable and engaging without images.
Bulletproof buttons
Bulletproof buttons
Bulletproof backgrounds
Bulletproof backgrounds
The Word rendering engine, used in Outlook 2007-2021 for Windows, does not support CSS background images in HTML emails. Similar to buttons, VML code is used to work around this.For example:
VML
VML
From Microsoft’s VML documentation:
Vector Markup Language (VML) is an XML-based exchange, editing, and delivery format for high-quality vector graphics on the Web that meets the needs of both productivity users and graphic design professionals.In HTML email development, VML is mainly used to create bulletproof buttons and to enable background images in Outlook on Windows, as shown above.It can also be used to position elements in Outlook, which helps create designs with overlapping elements like in the Faux Absolute Positioning technique.While VML does help create more consistent designs across email clients, it’s important to note that it is not accessible to screen readers.