📜 ⬆️ ⬇️

How-to: Rules for the layout of email-letters



E-mail is an excellent communication tool that allows companies to deliver content to the audience in a way that is convenient for them. At the same time, reading letters in plain text format is not always convenient, therefore, modern graphic e-newsletters use various graphic elements.

HTML HTML layout is an interesting and rather difficult task. Emails should be equally well displayed on older devices and versions of software clients.
')
In today's article we will talk about how to create email-letters that look good on any devices, and also consider how to adapt the HTML code of existing mailings to display them on phones and tablets.

Translator’s Note: The material presented below contains a significant number of technical terms that may cause inaccuracies in the translation. If you notice a typo, mistake or inaccuracy of the translation - write to us and we will fix everything promptly.

HTML basics for email


The main problem with the layout of email-letters is the fact that there is a huge amount of software for reading such messages - from desktop products like Eudora Outlook, AOL, Thunderbird and Lotus Notes to web services like Yahoo !, Gmail, Mail.ru and mobile mail applications.

How the software is used by each of these tools for rendering HTML will depend on which HTML and CSS code will work and which will not.

Providing cross-browser web site mapping is not easy, but when it comes to email, it is still more difficult. Each of the existing programs for working with mail can display the same letter in completely different ways. And even if you achieve more or less the same display in different client programs, it’s too early to rejoice, because how the letter will ultimately look depends on the width of the user's screen.

If you are going to typeset letters manually or use a ready-made template, you should follow two basic rules for creating HTML for email:

  1. You must use HTML tables for more control over the letter template. Even if you are accustomed to relying on CSS on the web - do not transfer this habit to the world of email, because it does not work with the diversity of client software.
  2. Use inline CSS (inline) for more control over other elements of the letter (fonts, background color, etc.) - this is a great version of CSS Inliner from Pechkin .

The easiest way to see how HTML tables and embedded CSS can be used in email-letter templates is to download some of these templates from the Campaign Monitor and MailChimp sites ( note: here are some examples of Pechkin-mail client email design examples ).

When studying these patterns, several things will be noticeable, which we will discuss in more detail below:

Source: https://habr.com/ru/post/255819/


All Articles