1. Introduce presenters + attendees2. Overview of what we’ll cover.Overview of HTML vs. CSSCode for email not the same as code for webHTML is a markup language that is universally CSS is a style sheet whose form is separated from its contentPut yourself in the customer’s shoes when talking to them – the beautiful, efficient world of building websites with CSS doesn’t apply here.W3C puts together rough standards. These standards don’t exist for email.Proper syntax still counts – opening and closing tags
:53Brief overview.Images link to the video
:58Towards the top of the HTML, a red flag would be “script”Visual for white on white background. Gmail: repeat x and y support: vertical repeats keep repeating no matter what?OUTLOOK 2007 Validator available.
:23Haha! Apparently Dreamweaver 4 (not CS4…just 4) writes decent codeCan be obtained by mugging a dinosaur
:27When to come to design for help, ideas, etc?
How our expertise in performance-driven design increased conversions by 88%
Html For Email - Technical Tips and Tricks Developing Emails
HTML FOR EMAILTechnical Tips and TricksDeveloping Emails<br />
HTML FOR EMAIL: GENERAL RECOMMENDATIONS<br />HTML for email is different than HTML for the web!<br />Modern web design utilizes CSS (cascading style sheets) for layout. However, due to inconsistent CSS support, HTML tables must be used for email layout. CODE LIKE IT’S 1999!<br />No standards exist for displaying HTML in email.<br />Proper syntax still counts – use a validator to check for general errors.<br />Make sure all open tags have a properly nested closing tag.<br />Specify accurate table and cell widths. Improper math can cause major layout problems.<br />Images & other elements should each reside in their own table cell.<br />Specify desired alignments (left, right, top, bottom). If unspecified, not all email clients will default to the same alignment.<br />
What elements are supported in email?<br />HTML Forms<br /><ul><li>Used for surveys, search wizards, drop-down boxes, etc.
About half of email clients either disable forms or display a warning message about the form, leading to a poor user experience
Link to a survey / form hosted on an external landing page
Provide a link near the form that allows subscribers to view the email in their browser
Use images to create a simple survey and pull results from click tracking</li></li></ul><li>What elements are supported in email?<br />Video and Flash<br /><ul><li>Embedding Flash or video in an email can cause deliverability issues, and if delivered, video will be disabled in almost every email client.
Can cause emails to end up in the junk/spam folder</li></ul>Background Images<br /><ul><li>Background images should be added using the HTML background attribute
Background images will not display in Outlook 2007 and Lotus Notes, regardless of the method of application
Text over a background image must be readable on the background color - background images are not supported in all clients and images may be turned off.</li></li></ul><li>TOOLS FOR CREATING HTML<br />HTML Editors<br /><ul><li>HTML editors such as Dreamweaver, Microsoft Office SharePoint Designer, etc. are designed with web coding in mind, not email.
Many of the coding techniques used in HTML editors will lead to display issues in email clients - Microsoft Word, for example, will add proprietary code that will not display properly
To achieve the best results use a plain text editor such as Notepad or TextEdit
Outlook 2007 is very particular. Specify accurate table widths – errors in math will cause incorrect display.
Outlook 2007 is very particular. Specify accurate colspans and rowspans – extra values creates extra spaces.
Only the first frame of an animated .gif will display, so make it count.
Only in Outlook 2007: CSS padding applied to the top or bottom on one cell in a multi-column layout will be applied to all columns in that row<table border=“0” cellpadding=“0” cellspacing=“0” width=“100%”> <tr> <td style=“padding-top: 10px;”>Left Column</td> <td>Right Column</td> <!-- The right column will ALSO have 10px of padding-top in Outlook 2007 --> </tr></table></li></li></ul><li>LOTUS NOTES & HOTMAIL<br />Lotus Notes<br /><ul><li>Since Notes is very challenging to code for, make sure Notes users make up a significant portion of your audience before reconfiguring your code specifically for this environment.
Only use CSS for text formatting – font-family, size, color
Eliminate colspans and rowspans – use nested tables instead to isolate elements
New versions of Lotus Notes (such as version 8) provide HTML support much more consistent with other email clients</li></ul>Hotmail<br /><ul><li>Avoid the background-image CSS property – use the HTML background attribute instead
To remove the extra white space that appears below images in Firefox include style=“display: block;” in image tags</li></li></ul><li>GMAIL & YAHOO<br />Gmail<br /><ul><li>Avoid embedded CSS. Gmail will strip out embedded CSS, so use inline CSS instead.
Issues exist with left/right CSS borders, use spacer .gifs or CSS padding instead.
Avoid the background-image CSS property – use the HTML background attribute instead.
Gmail Themes overwrite default link colors – always specify desired link colors.
Don’t forget closing tags. Gmail is very particular about syntax, and the layout will suffer greatly if they are missing.</li></ul>Yahoo!<br /><ul><li>The vertical space between paragraph tags <p> is not displayed – in the ExactTarget editor, use soft returns or line breaks <br> instead. In HTML paste, specify a top and bottom margin of 1em on paragraph tags. (e.g. <p style=”margin: 1em 0 1em 0;”>)</li></li></ul><li>DESIGN RESOURCES<br />