Transcript
Page 1: Responsive HTML Email

https://flic.kr/p/idKefi

Responsive HTML Email

Page 2: Responsive HTML Email

Benjy StantonFreelance web designer

Page 3: Responsive HTML Email

Responsive HTML Email

Page 4: Responsive HTML Email

My Process

https://flic.kr/p/idJmHY

Page 5: Responsive HTML Email

1. Gather content

2. List elements on paper

3. Sketch wireframes

4. Mock-up design

5. Write the code

6. Inline CSS

7. Test in web browsers

8. Test with ‘real’ email clients

9. Test on virtual email clients

10. Lift-off!

Page 6: Responsive HTML Email

Design with data

https://flic.kr/p/i3Hm7i

Page 7: Responsive HTML Email

http://emailclientmarketshare.com/

Page 8: Responsive HTML Email

Progressive enhancement

Page 9: Responsive HTML Email

Start with plain text• Encourages a ‘Content First’ approach

• Not having a plain text will anger the spam filters

• Some older email clients can’t handle html

• Some people prefer plain text and will set their email clients accordingly

Page 10: Responsive HTML Email

Images off by default• Most email clients block images by default

• Content should make sense with images off

• Style ALT text so email looks good even without images

Page 11: Responsive HTML Email

Link to web view• People may have images turned off

• The html may not be rendering properly

• It’s a handy way to share the email

Page 12: Responsive HTML Email

Accessibility

Page 13: Responsive HTML Email

– Mark, Rebelmail

“People spend a lot of time worrying about email clients with 1% usage; accessibility is a much bigger issue”

Page 14: Responsive HTML Email

https://www.campaignmonitor.com/guides/accessibility/

Page 15: Responsive HTML Email

• Tables are optimised to preserve logical reading order

• Heading elements used

• Text colour contrast is sufficient

• Subject line is concise and descriptive

• Headings summarise content that follows

• Link text is meaningful (not “read more” or “click here”)

Page 16: Responsive HTML Email

http://colororacle.org/

Page 17: Responsive HTML Email

Back to the design process

Page 18: Responsive HTML Email

Client brief• main objective of the email

• target audience

• an early draft of the content

• guidance on potential design style(including imagery and brand guidelines)

Page 19: Responsive HTML Email

Start with real content

https://flic.kr/p/ic3Hi9

Page 20: Responsive HTML Email

• Logo

• Main image

• Heading

• Paragraph (or two)

• A main call to action

• Contact details

• Social media icons

• Small print

• Unsubscribe link

• View in a browser link

Page 21: Responsive HTML Email

Make a list• List the elements on some paper

• Mark them up as h1, p, button etc.

• develop a hierarchy and a source order(good for mobile first approach)

Page 22: Responsive HTML Email
Page 23: Responsive HTML Email
Page 24: Responsive HTML Email

How big should an email be?• 600px wide for “desktop” email clients

• I’ve already decided on the source order, so no real need to mock-up at narrower widths

• Height and weight: smaller the better

Page 25: Responsive HTML Email

Keep Things Simple• Use just 1 or 2 columns if you can

• Be generous with spacing

• Complicated designs take ages to test and debug

Page 26: Responsive HTML Email

Consider how things will look in the inbox

Page 27: Responsive HTML Email
Page 28: Responsive HTML Email
Page 29: Responsive HTML Email

Building

Page 30: Responsive HTML Email

http://zurb.com/ink/

Page 31: Responsive HTML Email

http://zurb.com/ink/inliner.php

Page 32: Responsive HTML Email

Inline your CSSWe need to do this because Gmail strips CSS from the <style> tag.

Page 33: Responsive HTML Email

http://inliner.cm/

Page 34: Responsive HTML Email

Use tablesUse <table></table> because Outlook

has poor support for CSS based layouts

https://www.campaignmonitor.com/guides/coding/guidelines/

Page 35: Responsive HTML Email

Attribute selectorsUse attribute selectors for any styles

contained in your media queries to make sure Yahoo! ignores them.

https://www.campaignmonitor.com/guides/mobile/coding/

Page 36: Responsive HTML Email

Use !importantUse !important in your media queries to

make sure the styles override any inline styles

https://www.campaignmonitor.com/guides/mobile/coding/

Page 37: Responsive HTML Email

Checklist• Proof read the copy

• Check phone numbers and email addresses

• Check you’ve included alt text and titles attributes

• Remove unused CSS

• Optimize images

• Check email with images turned-off

• Check images and links have absolute paths

Page 38: Responsive HTML Email

http://emailchecklist.org/

Page 39: Responsive HTML Email

Testing!

https://flic.kr/p/hLD7cN

Page 40: Responsive HTML Email

http://mailchimp.com/

Page 41: Responsive HTML Email

Test on real devices• Gmail.com

• Outlook.com

• Yahoo.com

• AOL.com

• iPhone 5c

• iPad

• Mail (OSX)

• Thunderbird (OSX)

• Outlook (Windows)

• Windows Live Mail

Page 42: Responsive HTML Email

http://benjystanton.co.uk/email-test.pdf

Page 43: Responsive HTML Email

Inspecting is trickyTest in old browsers like IE7 instead

Page 44: Responsive HTML Email

Outlook for freeStart a Office trial, then don’t renew

it. You still get to use Outlook for testing. Shhhh, don’t tell anyone.

Page 45: Responsive HTML Email

http://mailchimp.com/features/inbox-inspector/

Page 46: Responsive HTML Email

Stuck? Check the interwebs

• Campaign Monitor

• Litmus

• Email on Acid

Page 47: Responsive HTML Email

Beating spam filters• Use test services provided by ESPs

• Use www.mail-tester.com

• Write good content

Page 48: Responsive HTML Email

Nearly there…

https://flic.kr/p/hVRbV8

Page 49: Responsive HTML Email

Further ReadingMaking Responsive HTML Emails benjystanton.co.uk/blog/making-responsive-html-emails/

The Ultimate Guide to CSScampaignmonitor.com/css/

The Email Design Guidemailchimp.com/resources/email-design-guide

Can Email Be Responsive?alistapart.com/article/can-email-be-responsive

Five Ways to Test an Emaillitmus.com/blog/five-ways-to-test-an-email

Page 50: Responsive HTML Email

Further ReadingEmail Design Reviewemaildesignreview.com

Let’s fix email letsfixemail.com

The design of government emailsdesignnotes.blog.gov.uk/2014/09/04/the-design-of-government-emails

Litmus Email Builder litmus.com/email-builder

What you need to know about using fonts in email adestra.com/what-need-know-using-fonts-in-email

Page 51: Responsive HTML Email

Further Reading6 Email Client Hacks You Need To Knowfreshinbox.com/blog/6-email-client-hacks-infographic

Best Practices for Plain Text Emails litmus.com/blog/best-practices-for-plain-text-emails-a-look-at-why-theyre-important

The Ultimate Guide to Styled ALT Text in Emaillitmus.com/blog/the-ultimate-guide-to-styled-alt-text-in-email

Image Blocking in HTML Emailcampaignmonitor.com/resources/will-it-work/image-blocking/

Color blindness and email: Are you designing for accessibility? www.campaignmonitor.com/blog/post/4267/color-blindness-accessibility-and-the-vision-impaired-in-email-design

Page 52: Responsive HTML Email

Thanks!benjystanton.co.uk

@benjystanton

https://flic.kr/p/hXzsG9


Top Related