Sub topic 13
Accessibility basics for email
This chapter assumes you can read the table-based templates from earlier chapters. It also assumes you know what role='presentation' and inline styles do, and that you have a basic idea of how a screen reader works. A screen reader is software that reads a page aloud or sends it to a braille display. Email accessibility covers low vision, blindness, motor impairments, color blindness, and dyslexia. It also covers ordinary situations such as a phone in sunlight.
Why email needs its own accessibility checklist
Email clients strip scripts, ignore many CSS features, and give you no control over the reading app. You can't depend on ARIA support or custom focus styles. Accessible email therefore rests on a small set of basics that survive every client:
- Correct language and title declarations
- Layout tables that screen readers treat as layout
- Real text instead of text baked into images
- Descriptive alt text
- Enough color contrast
- Meaningful link text
- A reading order that matches the visual order
Most of these cost nothing. The failures usually come from template habits like alt attributes left out, gray text for "subtle" styling, and "Click here" links.
Declare language and title
The lang attribute tells a screen reader which pronunciation rules to use. Without it, a French email may be read with English phonetics. The <title> is read by some clients as the document name and shows in browser-view versions of the message.
<!DOCTYPE html>
<html lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>Order confirmation: your order has shipped</title>
</head>Never add user-scalable=no or maximum-scale=1 to the viewport tag. They block pinch zoom, which many low-vision readers rely on. If one passage is in another language, set lang on that element, for example <span lang='fr'>bon appétit</span>.
Mark layout tables as presentation
Email layouts use tables for positioning, not for data. Without a hint, a screen reader may announce "table, 2 columns, 3 rows" for every wrapper, which is noise. Add role='presentation' to every layout table, as you already do in the earlier templates. The role removes the table semantics but keeps the content readable.
Real tabular data is the opposite case. An order summary with rows and columns of values is a data table, so it should not use role='presentation'. Give it header cells.
<table width='100%' cellpadding='0' cellspacing='0' border='0' style='font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:24px;color:#222222;'>
<caption style='text-align:left;font-weight:bold;padding-bottom:8px;'>Items in your order</caption>
<tr>
<th scope='col' align='left' style='padding:8px;border-bottom:1px solid #cccccc;'>Item</th>
<th scope='col' align='right' style='padding:8px;border-bottom:1px solid #cccccc;'>Price</th>
</tr>
<tr>
<td style='padding:8px;'>Canvas tote bag</td>
<td align='right' style='padding:8px;'>$24.00</td>
</tr>
</table>Keep the reading order logical
Screen readers follow the source order, not the visual order. Stacking columns with display:block on mobile is safe because the stacked order matches the source order. Tricks that reverse the visual order do not change the source order. One example is direction:rtl on a row so the image appears first on mobile. In that case a screen reader user hears the content in a different order from what a sighted user sees. Put the content in the order you want it read, and design around that order.
Use headings and real text
Screen reader users often jump from heading to heading to scan a message. Use <h1> for the main title and <h2> for sections, and reset their margins and font properties inline, since clients apply their own defaults.
<h1 style='margin:0 0 16px 0;font-family:Arial,Helvetica,sans-serif;font-size:24px;line-height:30px;color:#222222;'>Your order has shipped</h1>
<p style='margin:0 0 16px 0;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:24px;color:#222222;'>Order 1042 should arrive on Friday.</p>Don't style a <p> or <td> to look like a heading. Also avoid putting key information only in an image. Image-only text vanishes when images are blocked, can't be resized, and can't be read aloud unless the alt text repeats it.
Write useful alt text
Alt text is the single most visible accessibility feature in email, because it also shows when images are blocked. Decide per image:
| Image role | Alt text | Example |
|---|---|---|
| Informative | Short description of the content or the point | `alt='Tote bag in navy canvas'` |
| Linked | Where the link goes, not what the picture looks like | `alt='View your order'` |
| Contains text | The same text as the image | `alt='Free shipping on orders over $50'` |
| Decorative | Empty alt | `alt=''` |
An empty alt='' tells a screen reader to skip the image. Leaving the attribute off is different: some readers then announce the file name. Spacer images and decorative dividers should have alt='', and the role='presentation' attribute is a reasonable extra signal. Avoid starting with "image of" or "picture of", because the reader already announces that it is an image.
<img src='https://example.com/img/tote.jpg' width='600' alt='Navy canvas tote bag with leather handles' style='display:block;width:100%;max-width:600px;height:auto;border:0;font-family:Arial,Helvetica,sans-serif;font-size:16px;color:#222222;'>The font styles on the img matter because some clients render the alt text in that style when the image is blocked, so it stays legible.
Check color contrast
The WCAG AA guideline (Web Content Accessibility Guidelines) asks for a contrast ratio of at least 4.5:1 for normal text. Large text needs 3:1. Large means 18 pt or larger, or 14 pt bold or larger. Typical failures are light gray text on white and white text on a pale brand color. For example, #999999 on white is about 2.8:1, which fails. The button color #0b5fff with white text is about 5.1:1, which passes. Check each pair with a contrast checker.
Check dark mode separately. A color pair that passes in light mode can fail after a client inverts it, so test both. Also, don't use color as the only signal. A link that is only a different color from the surrounding text is invisible to some color-blind readers. Keep the underline on inline links, and mark errors or status changes with words as well as color.
Make links and buttons meaningful
Screen reader users often pull up a list of all the links in a message, so each link must make sense out of context. "Click here" and "Read more" repeated five times are useless in that list.
- Prefer link text like "View your order" or "Read the shipping policy".
- Keep one destination per link. Don't wrap an image and a separate text link that go to the same place in two adjacent anchors. If you must, give the image
alt=''. - Avoid bare URLs as link text, since they are read character by character.
- Keep the bulletproof button from the earlier chapter. It is a real
<a>with text, so it is focusable and announces as a link, and it works with images and CSS off.
Size text for readability
The earlier chapters set body text at 16px with a 24px line height. That is also an accessibility choice. Keep body text at 14px at the smallest, and make sure the layout still holds when a user raises the system font size. Use left-aligned text for paragraphs, since justified text creates uneven gaps. Keep lines to a comfortable length. A 600px container usually does this. Buttons and links need tap targets of at least about 44 by 44 px, as covered earlier.
Provide a plain-text alternative
Send a text/plain part with the HTML message (a multipart/alternative email). Some readers, braille displays, and old clients prefer it. It is also a fallback if the HTML fails. Put the same content and links in the same order as the HTML version.
Common errors
- Missing
langon<html>. - Layout tables without
role='presentation'. - Missing
alton images, or "spacer" as the alt text. - Reordering columns visually while the source order stays different.
- Light gray footer text that fails contrast.
- Links that say only "here".
- Disabling zoom in the viewport tag.
Exercise
A marketing email has a decorative divider image, a headline image that contains the words "Summer Sale: 20% off", and a footer line in #aaaaaa on a white background. What alt text would you give each image, and what is wrong with the footer?
Show answer
The divider is decorative, so use alt='' to make screen readers skip it. The headline image carries text, so its alt should repeat that text: alt='Summer Sale: 20% off'. Better still, make the headline real text with an h1. The #aaaaaa on white is about 2.3:1, below the 4.5:1 minimum for normal text. Darken it, for example to #595959 (about 7:1), and recheck it in dark mode.
Exercise
Why is it a mistake to use direction:rtl on a table row so the image appears above the text on phones, when in the source the text comes first?
Show answer
Screen readers follow the source order, so a user hears the text before the image while a sighted user sees the image first. The two experiences differ. Put the content in the source in the order you want it read, and make the stacked layout match it.