Limitations of HTML in Emails

This article covers HTML limitations in Finalsite Messages email campaigns, including which content types are safe, risky, or blocked and which email clients support custom web fonts.

đź’ˇQuick answers

  • What HTML content is safe to use in emails? Static table-based layouts, HTML tables, a template width of 600 to 800 pixels, simple inline CSS, and web safe fonts are all safe to use.
  • Which email elements should be used with caution? Background images, custom web fonts, wide layouts, image maps, and embedded CSS render inconsistently across email clients and should be tested before sending.
  • Do animated GIFs work in email campaigns? Most clients support them, and you can insert one directly from Giphy or upload your own, but some email clients don't display animated GIFs.
  • Which email clients support custom web fonts? Apple Mail, Outlook 2011 for Mac, Outlook 2016, iOS Mail, and several Android mail clients support web fonts, while Gmail, Yahoo, Outlook.com, and most older Outlook versions do not.
  • Why do wide email templates get cut off? Email viewing panes on mobile devices and in desktop preview panes are narrow, so templates wider than 600 to 800 pixels get cut off.
  • Can I use JavaScript, iframes, Flash, or forms in an email? No; nearly all major email clients block these elements because they can hide malicious content or won't function properly, so links or GIFs should be used instead.

In this article


The majority of email clients don't support every type of HTML content you see on the web. Web browsers are able to display scripts, animations, and complex navigation menus, while your typical email inbox isn't built to handle this type of content.

Here are some best practices for content types to avoid in your email designs, and what to use instead.

Best practices for HTML Email

Email clients typically have their own design constraints as compared to a web browser. Interactive elements like Flash, JavaScript, or HTML forms won't work in most email inboxes.

Safe to use

static, table-based layouts

HTML tables and nested tables

template width of 600px-800px

simple, inline CSS

web safe fonts

Use with caution

background images

custom web fonts

wide layouts

image maps

embedded CSS

Do not use

JavaScript

<iframe>

Flash

embedded audio

embedded video

Forms

<div> layering

Use with caution

Include certain elements, like background images and custom fonts, in your Message templates. Not all email clients support these elements, so we recommend that you thoroughly preview and test your campaigns before you send them to your entire audience.

Animated GIFS

Some email clients don't support animated GIFs, but if you would like to include a GIF in your campaign, you can insert one into your campaign directly from Giphy. If you upload a GIF directly, your animated content must be edited first. 

Background images

Finalsite Messages supports background images in the preheader, header, body, column, and footer sections of our drag-and-drop templates. If you use a custom HTML template, you can add a background image with our template builder. Background images don't render in every email client, and may appear differently in mobile clients, so it's important to thoroughly preview and send a test message before you send them to your audience.

Web fonts

The editing toolbar allows you to use standard fonts and a select number of custom web fonts. If an email client doesn't support a web font used in your campaign, we'll replace it with a standard font instead.

Here is a guide for you to know which email clients do and do not support web fonts.

Supports Web Fonts

Apple Mail

Lotus Notes 8

Outlook 2011 for Mac

iOS Mail

Outlook 2016

Android App

Android Mail 2.3

Android Mail 4.2

Android Mail 4.4

Does Not Support Web Fonts

Lotus Notes 7

Lotus Notes 8.5

Gmail

Yahoo!

Outlook.com

Outlook 2003

Outlook 2007

Outlook 2010

Outlook 2013

Thunderbird

IBM Notes 9

AOL

Blackberry

Alto

Wide templates

Your contacts often open campaigns on mobile devices or in the preview pane of desktop email clients. Email viewing panes are narrow, so they'll cut off your message if it's wider than 600-800px.

Do not use

The following elements are blocked by nearly all major email clients.

JavaScript

JavaScript is a programming language that makes web content interactive. It's common in websites, but the vast majority of email clients block scripts since they can hide malicious content. Avoid all JavaScript. Try gifs to make your content more engaging.

Iframe Elements

An <iframe> (inline frame) is an HTML element that embeds content from one website into another. Inline frames are often used to insert advertisements, video, audio, or forms in other websites. Iframes often contain scripts, so most email clients block them. Instead, link to the content you want to display in your campaign.

Flash

Flash displays animations and graphics on websites, but most email clients block it. Instead, try gifs to make your content more engaging.

HTML Forms

Text fields, text inputs, radio buttons, and checkboxes are simple HTML form elements, but the submit button often requires Javascript. Some email clients will display forms, but unfortunately, contacts won't be able to submit them. Avoid HTML forms, and consider an alternative.

Instead, insert a link to a web form.

Embedded media

Autoplay and click-to-play media won't play in an inbox unless your contact's email client supports HTML5 <video> and <audio> tags. Only one major email client, Apple Mail, supports these tags, so it's best to avoid embedded media and consider an alternative.

Instead, follow the instructions to Link to video in Messages to display a video thumbnail with a “Play” icon on top of the image.

Markup

 

Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Please Sign in to leave a comment if you don't see the comment box below.