Layout and accessibility
Build email that every client can show and every reader can use. Semantic HTML, live text, clear contrast, small files and a test send to each major client.
- Required 2
- Recommended 10
Email clients render HTML with very different engines. Classic Outlook on Windows uses the Word engine, Gmail removes some CSS, and Apple Mail supports nearly everything. Data on which client supports what is published at caniemail.com. Plain-text-only mail passes this chapter, because it has no layout to break.
Required
Describe every image
EML-39Give every meaningful image an
altthat says what it shows or does, and give decorative images an emptyalt="".Use contrast and more than colour
EML-40Meet the contrast in colour contrast and never show meaning by colour alone, as not colour alone says.
Recommended
Mark up the message with meaning
EML-38Use headings, paragraphs and lists, and mark every layout table with
role="presentation", so screen readers announce content and not table cells.Set a readable text size and line width
EML-41Set body text to at least 16 pixels, with a line height of at least 1.4 and a content column no wider than 600 pixels.
Send text instead of pictures of text
EML-42Put every important word in live text. Never send a message that is one large image.
Build layout that Outlook can show
EML-43Build the outer layout with tables and fixed widths where classic Outlook on Windows needs them, and use modern CSS only as an extra.
Inline the CSS and plan for it to fail
EML-44Put the CSS that matters inline on each element, and make sure the message still reads if a client strips the rest.
Fit every screen
EML-45Make the message work on a phone first, with fluid widths and media queries only as an extra.
Make buttons easy to tap
EML-46Build each call to action as a link styled as a button, at least 44 by 44 pixels, with clear words.
Plan for dark mode
EML-47Design for clients that switch to dark mode, so text stays readable and logos stay visible.
Write a preheader
EML-48Set the short text that inboxes show after the subject, so it adds to the subject instead of repeating it.
Test in the clients your readers use
EML-49Send every new template to the main email clients before it goes to people, and check it in light and dark mode.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/layout-and-accessibility">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.