HTML Email Best Practices

If you are already pulling your hair because of the different quirks of the different web browsers, you’d easily go bald trying to figure out how to make CSS work in HTML Emails.

Why bother?

There are hundreds of different email clients, each having its own version of how to render your HTML email. It will be best to follow some simple guidelines to avoid alienating your readers with quirky email clients.

Let me summarize the fundamental best practices:

  • Use HTML tables for layouts. (I know this is the ultimate sin for CSS purists, but I’d rather commit CSS sin than go bald)
  • Use inline CSS for presentation formatting.
  • Do not use CSS shorthand. (example: border: 1px solid #FFFFFF)
  • Avoid Javascript. Most email clients do not support it.
  • Keep to a maximum of 550 pixels in width.
  • The average preview pane is 300-500 pixels high. Make sure your important headline is in this area.

Background Images

  • You can slice up a background image and serve it up on your table’s cells. Another alternative is to just make one background image, to minimize our “points of failure”.
  • For background images, use the <table>’s background attribute instead of CSS. This works more consistently.
  • Store the email images on a web server.
  • Be sure your images have alt, height and width attributes set. However, note that Outlook 2007 does not recognize the alt attribute.
  • Using a 1×1 pixel image for spacing and/or presentation will increase the likelihood that your email will be classified as spam. This is because spammers use a 1×1 image to determine if their email has been opened.

The Email Standards Project is spearheading the effort to get everybody on the same page. They have tested several email clients using this template (both web based and desktop) for CSS support. Visit their website to see the results.

What If Images are turned off?!

Many email clients set the display of images to “off” by default. So you have to take this into account and make sure that your email will still be presentable in this case.

Linking

  • Open links in a new window to avoid having the page open within the email client. Use target=”_blank” attribute.

Known Issues

  • Image displacement can occur when a closing </td> is placed below an <img> tag. This has been a problem for the longest time so avoid that and just place the </td> right after the <img> tag.

SPAM

You don’t want your hard work to go down the Junk Mail drain. Better check your email for it’s “spamminess”. There are tools to do this such as http://spamcheck.sitesell.com/

Testing Checklist

  • Is there a NAME indicating who the email is from? (John Smith <john@smith.com>)
  • Is there a subject line?
  • Did your email display as you intended it to be? with or without images?

Conclusion

The KISS principle can definitely be applied here. While CSS support in browsers are coming together, email clients have a long way to go to catch up.

No comments yet.

Leave a Reply

  • freida pinto boyfriend
  • search xml file
  • la ink 2011 season 5
  • new england patriots 84
  • randy moss football cards
  • bea luna
  • chicago bears zip hoodie
  • tea party for kids
  • search engines other than google
  • search engines compared
  • sitcoms
  • search comcast net
  • zara phillips yachtzara phillips zimbio
  • search and seizure
  • wrestling
  • connecticut post
  • chicago bears posters
  • zara phillips baby
  • mtv 90s music videos
  • zara phillips and the queen
  • tea party young people
  • randy moss university
  • connecticut limo
  • kill
  • search engines of the world
  • chicago bears garter
  • search operatorssearch people
  • greg olsen twitter
  • battleship kirishima
  • connecticut lottery
  • greg olsen 2009 calendar
  • mtv music awards
  • search engines internet
  • stewart
  • hp support error 1005
  • chicago bears pictures
  • arrested
  • battleship aurora
  • connecticut quarter error
  • zara phillips school
  • search engines for jobs
  • hp support id
  • la ink bam margera
  • search engines before google
  • halo
  • la ink price list
  • wharehouse
  • dis x
  • hp support contact number
  • vince young 2008
  • dis boards cruise
  • greg olsen university of miami
  • vince young uncle rico
  • new england patriots needs
  • quarters
  • rinse
  • cspan michelle bachmann
  • dis windsor wi
  • battleship classes
  • moble
  • ncaa
  • c span yesterdayc span zelaya
  • tea party ribbons
  • dedham
  • tea party gifts
  • vince young depression
  • bea binene
  • chad ochocinco xpchad ochocinco youtube
  • bengals 08 schedule
  • tea party texas
  • hp support center
  • manicure
  • new england patriots espn blog
  • ipods
  • revival
  • new england patriots gillette stadium
  • zara phillips guest list
  • johanson
  • search 50 cent
  • chicago bears 96
  • hp support center
  • randy moss legal issues
  • search in vi
  • winnipeg
  • new england patriots helmet
  • jenkins
  • bea taylor
  • greg olsen mormon
  • hp support englandhp support forum
  • search engines for kids
  • dis unplugged show notes
  • charges
  • di's hallmark
  • tuneup
  • bengals kids jersey
  • connecticut department of labor
  • freida pinto glamour 2011
  • patten
  • c span yesterdayc span zelaya
  • prediction
  • chad ochocinco sisterchad ochocinco twitter
  • battleship history
  • tea party zombies download
  • disloyaldis magazine
  • christians
  • battleship egg hunt
  • hp support driver downloads
  • la ink watch online free
  • bixby
  • scopes
  • search protocol host
  • vince young z
  • parade
  • charities
  • kayak
  • badges
  • new england patriots 3 4
  • bengals hard knocks episode 1
  • mtv rivals
  • samba
  • zara phillips husband
  • bedspread
  • mtv 25 lame
  • battleship yamato wreck
  • holster
  • tumbling
  • connecticut natural gas
  • randy moss mix
  • bea rims
  • bengals undraftedbengals vs steelers
  • bea 71 16
  • avondale
  • greg olsen dustin keller
  • search dog foundation
  • attempt
  • brownie
  • cspan streaming
  • battleship excel
  • chicago bears bleacher report
  • bengals tryouts
  • hp support contact us
  • chad ochocinco bears
  • flames
  • la ink upcoming episodes
  • battleship galactica
  • mtv overdrive
  • connecticut 5 star resorts
  • connecticut education
  • bea 2011 map
  • zara phillips dating
  • hp support greece
  • hp support greece
  • battleship aurora
  • vince young yahoo stats
  • thom
  • la ink youtube pixie
  • la ink corey
  • battleship lexington
  • mounts
  • 4pm cspancspan area 51cspan 90.1
  • tea party zombies download
  • new england patriots 1997 roster
  • chicago bears schedule 2011
  • randy moss height
  • randy moss wallpaper
  • c span 4 to 5
  • pans
  • connecticut airports
  • tea party medicare
  • greg olsen vancouver
  • zara phillips royal wedding picture
  • new england patriots xxl
  • roth
  • battleship layout
  • bengals images
  • search jail inmates
  • mtv jams
  • dis pater
  • chad ochocinco 15
  • chad ochocinco and cheryl burke
  • graphs
  • goldfinger
  • disassembledis boards
  • new england patriots 1996 roster
  • search engines rankings 2011
  • tyson
  • affairs
  • certified
  • chicago bears media relations