Email Resource Center
  • Home
  • Email Lists
    • Types of Email Lists
    • Why Segment Your List?
    • Hygiene & Suppression
  • Targeting & Planning
  • Creative
    • Email for Mobile
    • Gallery
    • HTML Creative Best Practices
    • Text vs HTML
    • Writing Effective Copy
    • Subject Lines
    • Landing Pages
  • Deliverability
    • Email Authentication
    • Monitor Delivery
  • Metrics & Testing
    • What to Expect
    • Understanding Reporting
    • Testing
  • Industry
    • Trends
    • Social Media
    • Stats
    • Legislation/Laws
    • News & Articles
  • Knowledge Center
    • Email 101
    • Glossary of Terms
    • Whitepapers

June 18, 2011   Posted by: cgalbornetti

Programmer’s Guide to Designing/Coding HTML Email Creative

Source: Beasley Direct Marketing, Inc.

The easiest way to design an email communication is also the riskiest: composing it in Word, choosing “save as a Web Page” then opening and sending from Outlook. In the interests of cross-application compatibility, Microsoft adds all kinds of formatting that can change the way a document will look in different browsers or even make it unreadable.

Using an HTML editor like Dreamweaver is somewhat better, but only if you work mostly in the “code” window and stay away from templates which add their own formatting. And the very best option is to work in a text editor, like Notepad, and hand-code your HTML (which you can then open in an HTML tool to check for open tags and other typos.) This is important because any extraneous information causes an accumulation of formatting tags that can cause problems in visual rendering or set off spam filters. According to Marketing Sherpa, even experienced web designers often don’t realize that email requires ‘super clean code’.

12 best practices for HTML email

  1. Ideal email width: 550-600 pixels. This allows full-width viewing on a variety of browsers.
  1. Limit the file size to 30KB (20KB for mobile phones) or less for quick loading.
  1. Avoid using background images. They’re not recognized by many email browsers; including Outlook 2007, Microsoft’s newest version of its widely used email application.
  1. Make sure all tags are properly nested and closed <html></html>, <tr></td> <td></tr> etc.
  1. No javascript please. Many email browsers can’t read it.
  1. Avoid flash or streaming video in HTML emails. Animated .GIFs are usually OK. (but V12 doesn’t suggest it)
  1. Never use CSS layers to position elements; use HTML tables instead. Many email clients do not support CSS layers, and will destroy the format of your message.
  1. All dimensions for tables, rows, cells should be in pixels, not in percentages.
  1. It’s usually OK to use the COLSPAN attribute (how many across?) but ROWSPAN (how many down?) is not recognized by many browsers.
  1. Special ASCII characters like ®, ©, or ™ should be converted to HTML (&reg; &copy; &trade; ).
  1. Foreign characters should also be coded to remove accents, tildes and other characters that do not always reproduce correctly.
  1. All images should have their height and width spelled out. Otherwise, if images are blocked they may display as white boxes with infinite height and widths, pushing all the HTML text off the screen.

Here are three top tips for composing HTML that works in email

  1. Provide a 1 n absolute path to graphics on your server, rather than including the graphics as an attachment or a relative path to a local server that won’t be available when the email is opened.
  1. Insert the style sheet elements in the body of the email. Not in an external stylesheet (which will not work if the link is not working) and not in the header either (because many web email readers will strip out those headers).
  1. Prepare your email in multipart mime which means there is both a text version and an HTML version, along with the code that allows the email program to deliver the right version for each recipient. This translation procedure will generally be done by your mail transmission service. If they don’t offer it demand it.

HTML and Cross-browser Compatibility

As if it isn’t enough to have basic coding challenges, different readers and browsers handle emails slightly differently:

  • Gmail and other web mail programs strip out the headers. In fact, to avoid potential problems, many third party email services will remove the headers before the email is transmitted.
  • Outlook 2007 completely changed its code base, and is now based on Word compatibility instead of Internet Explorer. As a result, HTML forms no longer work in email, and background images are no longer displayed.

HTML code no-nos that can get you filtered

  • Text in different colors or font sizes (without using embedded style elements)
  • Using ‘dotted decimal’ IP addresses to reference graphics and links
  • Unbalanced body, table and other tags
  • Leaving the html editor information in the header
  • Having spammy words in alt tags or as file names
  • Missing or untitled between <title></title> tags
  • <TBODY> tags

The Special Problem of Mobile Delivery

Depending on your audience, a few to most of your users are seeing emails not on their computers, but on their mobile screens. Mobile devices display differently but all have the problem of narrow screen width.

Here are some best practices when delivering to mobile:

  • DON’T use long URLS that fill the entire mobile screen.
  • Design narrower pages if you know you are going to mobile users: 300-400 pixels vs. 550-700 for a desktop monitor; 40 text characters maximum vs. 72 for standard email.
  • Mobile readers display HTML in a variety of ways, so always include a text version in multi-part mime so the client will deliver your message in a readable format. (Blackberry for example, displays actual HTML code rather than interpreting it as a result that’s useless for readability)
  • Someday, mobile companies may agree on a common graphic standard, but today there are significant display variations from one mobile screen to the next.
  • Share this:
  • Email
  • Share
  • LinkedIn
  • Print
  • Share
  • Digg
Comments Off posted in: Creative   |   Email for Mobile   |   HTML Creative Best Practices
Tags:
email best practices, email creative, email creative best practices, HTML, html best practices, html email creative, html email tips, programming emails
Related posts
  • Text vs. HTML
  • Email Design No-No’s Guide for Non-Designers
  • 3 Tips for Maximizing Prime Real Estate Within Emails
  • Knowing How Your Audience will Interact With Your Email Can Guide Your Design Tactics
  • Writing Effective Copy
  • 4 Tips to Supercharge Call-To-Action Buttons

Welcome

The Email Resource Center is the official online library of resource tools, industry articles, and white papers that support and guide you in all areas of email marketing...go explore!

eMarketers face a big challenge in staying abreast of the constantly changing email landscape. Our experts will find and bring you the latest industry news, tips and email best practices to help ensure success.

E-Newsletter Sign-Up

Press here to sign up for our monthly newsletter to get up-to-date news on email, trends and insider tips from all the industry experts!

Recent Posts

  • Robotic Email Campaigns Miss the Point
  • Email (Not Social Media) Largest Driver of Online Purchases
  • The 9 Must-Have Components of Compelling Email Copy
  • The Domino Effect on Inbox Delivery
  • Landing Page Forms, Length and Lead-Capture
  • The 7-Point Checklist for Powerful Landing Page Copy
  • Will pricey cellular data plans derail email marketing?
  • Study: When Email is Viewed Heavily Effects Where
  • Email + Mobile: No More Excuses: Get Started Optimizing for Mobile
  • Minimizing email opt-outs in 2012

Archives

Visit V12groupinc.com

www.V12groupinc.com
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
Get In Touch
Headquarters
141 West Front Street, Ste 410
Red Bank, NJ 07701
p: 1.866.842.1001
f: 732.842.5999
e: info@v12groupinc.com

Click here to CONTACT US!
Connect With Us

Connect with us on our social networks.

  • Twitter
  • Facebook
  • Linkedin
  • RSS
Search
About V12 Group
V12 Group is a Database Management and Marketing Services firm, focused on helping clients manage and deliver relevant digital and direct marketing communications that improve campaign performance and return on your marketing investment.

Visit our About Us page!

Copyright © 2012 V12 Group, All Rights Reserved. View Privacy Policy. View Online Data Privacy Policy.

back to top