Key takeaways ✨
Accessibility issues. Not solely is it legally required to make your emails accessible to everybody, it’s the precise factor to do on your subscribers, and for what you are promoting. You may’t enhance conversion charges if somebody can’t work together along with your e-mail.Coding for accessibility doesn’t simply imply optimizing for display screen readers, although that’s an enormous a part of it. Along with display screen readers, you additionally want to consider visible impairment and the final group of your code. Messy code makes for much less accessibility.What is nice for accessibility is often good for everybody. Making small adjustments in your e-mail code, like including position=presentation in your tables or including hover results for clicks is both impartial for the remainder of your subscribers or makes your e-mail simpler to make use of for everybody. Both manner, it’s price doing.Litmus gives an accessibility checker for 40+ completely different accessibility points so you may double-check your code as you construct in Litmus Builder.
As e-mail entrepreneurs, all of us try to ship nice emails to our subscribers’ inboxes. We run spam exams and e-mail testing to make sure our design renders completely on all gadgets and e-mail shoppers.
The a whole lot of hours that go into your e-mail design and e-mail copy go poof in case your code renders your e-mail inaccessible. Accessibility is a pillar of e-mail design as a result of with out accessibility, a portion of your subscribers can’t see or click on in your e-mail in any respect. This makes it not possible for them to take motion in your e-mail, and worse, offers them a horrible expertise.
Should you’re simply getting began with making your e-mail code extra accessible, it may be overwhelming. However there are a number of easy methods that you may implement simply—and have a huge impact on e-mail accessibility.
Desk of contents
Accessibility coding requirements
E mail markup consortium just lately analyzed over 400,000 emails and located that 99.97% of HTML emails contained accessibility points that forestall many subscribers from studying the e-mail. 🤯That’s principally each e-mail ship!
As e-mail entrepreneurs, we should do higher.
“The commonest factor I hear about accessibility is that ‘no person is my e-mail with photos off,’ or ‘no person is utilizing display screen readers,’ and that’s simply not true,” says Carin Slater, e-mail advertising professional. “When somebody indicators up on your inbox, it’s like being invited into their residence. You have to respect who they’re as folks. That’s what accessibility is all about.”
Should you’re unsure the place to start out with accessible coding, it’s time to check up on requirements just like the Internet Content material Accessibility Tips (WCAG). These requirements define precisely how you can code emails to ensure they’re accessible to everybody—not simply what’s legally required of you within the U.S. and internationally.
These internationally acknowledged requirements define how you can make web sites, apps, and different digital properties accessible to folks with disabilities. Whereas WCAG isn’t a regulation by itself, it’s the well known information for making net and digital experiences accessible to everybody.
Accessibility made easy
Creating accessible emails is now not elective—it’s required. Find out about accessibility’s affect on manufacturers from two business consultants.
Watch now
Accessible coding and display screen readers
After we take into consideration accessible coding, what most individuals soar to is optimizing for display screen readers. A display screen reader is an assistive software program that reads textual content on a pc display screen (on this case, your e-mail). It’s mostly utilized by these with visible impairments, however anybody who has engaged Amazon’s Alexa, Apple’s Siri, or Google Assistant has used a display screen reader. The World Well being Group estimates there are round 2.2 billion folks with visible impairments, a lot of whom are thought-about blind.
What occurs when your code isn’t accessible? Let’s take photos for example. With out ALT textual content, display screen readers don’t have any manner of correctly describing a picture out loud.
Let’s have a look at this actually easy e-mail header from one in every of our personal emails. This header incorporates a picture of the Litmus brand with out ALT textual content.
Right here’s how a display screen reader will learn out our e-mail header, if we hadn’t optimized it for accessibility.
Audio Participant00:0000:00Use Up/Down Arrow keys to extend or lower quantity.
Display screen readers find yourself itemizing out a ton of garbled letters out of your code.Which means your subscribers with display screen readers need to type by way of complicated letters and numbers in an try to listen to your message. That’s not tremendous useful, and the physique of the e-mail hasn’t even began but! With that form of expertise, what are the probabilities they’d open one other e-mail? (Trace: Zero.)
Accessible e-mail code guidelines
Typically, we overlook to set ALT tags for our photos, use a colour mixture that’s troublesome to learn, or fail to optimize our emails for display screen readers. It occurs to the perfect of us.
Right here is your accessibility guidelines so your code is all the time readable by your entire subscribers—and simpler so that you can work with, too.
Are your emails accessible?
Use this free pre-send e-mail accessibility guidelines as a place to begin to makesure your e-mail copy, design, and code is accessible to everybody.
Get the guidelines

1. Add a language code to your <HTML>
Not your entire subscribers will learn your e-mail on their laptops or telephones—some will use display screen readers to entry your e-mail. Since your e-mail content material might be learn out loud, it needs to be in the precise language so the pronunciations are right. In any case, you wouldn’t need your e-mail written in French to be pronounced in American English, would you?
To forestall that from occurring, it’s important to inform display screen readers what language your e-mail is written in. If there’s no language code laid out in your emails, display screen readers can’t pronounce the copy appropriately—and your eloquent e-mail could come out sounding fully mistaken.
That’s why it’s key to examine your <HTML> for a language code—that’s a easy snippet of code that specifies your e-mail’s language. If it isn’t already in your code, add lang=“xx”—exchange xx with the suitable language code on your e-mail. Try this listing of all attainable language codes and localities—which lets you account for various accents, like a differentiation between British and American English.
There are a number of particular instances to contemplate:
Professional tip: it’s attainable to populate the language code dynamically if in case you have localization arrange inside your ESP.
2. At all times embody ALT tags on your photos
It’s necessary to remember that the photographs in your emails may not all the time be seen on your subscribers. Perhaps they’ve their photos off, or they’ve a nasty connection, or they’re utilizing a display screen reader. Should you’re together with plenty of necessary info in your photos, that messaging might be misplaced. That’s the place ALT textual content is available in. You may set textual content that’s seen to your subscribers (or learn out by their display screen reader) in order that they nonetheless get the identical messaging as folks that may see your photos.
“If the picture is of a particular product, after which the headline beneath the picture is the identify of the product, then your alt textual content shouldn’t simply be the identify of the product. In a display screen reader, that may learn one thing like, ‘iPhone iPhone iPhone iPhone iPhone,’ which is only a horrible expertise,” says Carin.
Wherever you’ve gotten an <IMG> tag in your e-mail code, make sure you set the ALT tag. If in case you have populated ALT tags already, double examine to guarantee that textual content matches the textual content on the picture. If in case you have empty ALT tags, guarantee that there isn’t any textual content on the picture that must be populated for a display screen reader to see.
There are some instances the place you need to add an empty ALT tag: alt=“” to the photographs. Do that when:
There are not any ALT tags in your photos.There isn’t any textual content within the picture itself.The picture is solely ornamental and doesn’t add any which means to the e-mail.
Should you don’t embody the empty tag, display screen readers will learn out the URL of the picture—and nobody needs an extended URL learn out to them!
When you’ve set your entire ALT tags—empty or not—for the photographs in your e-mail, add font styling into the <IMG> tag for styled ALT textual content. This styling enables you to get fancy along with your ALT textual content and allows you to alter the looks of the font, colour, measurement, type, and weight.
3. Embody position=”presentation” attribute on all <TABLE> components
Most e-mail entrepreneurs depend on tables to construction their e-mail structure, however these could cause critical points for display screen readers. If a display screen reader identifies a desk in your e-mail’s code, it can learn out loud as one. It’d actually inform you what number of rows and columns there are, telling you every column’s place and content material, making it not possible to know your message.
That’s why it’s key to inform the display screen reader that you just’re utilizing the desk for structure functions solely. You are able to do that by including position=“presentation” to each desk in your e-mail. This position tells the display screen readers to take away any semantic which means from the tables—so as a substitute of studying out row and column numbers, it focuses on the content material as a substitute.
Let’s have a look at this actually easy e-mail header from one in every of our personal emails:

Earlier than we optimized for accessibility, our code regarded like this:
<code type=”colour: #fff; background: #333;”>
<desk width=”100%” cellpadding=”0″ cellspacing=”0″
border=”0″><tr>
<td align=”heart” bgcolor=”#2f343c” valign=”prime”
type=”padding: 0px 15px;”>
<desk class=”w100p” width=”600″ cellpadding=”0″
cellspacing=”0″ border=”0″><tr>
<td class=”w100p” width=”600″ align=”heart”>
<desk cellpadding=”0″ cellspacing=”0″ border=”0″>
<tr><td type=”font-size: 1px; line-height: 30px;”>
</td></tr></desk>
<a rel=”noopener” goal=”_blank” rel=”noopener” goal=”_blank” href=”
<img src=”
width=”134″ top=”50″ type=”colour: #ffffff;
font-family:’proxima_nova’, Helvetica, Arial, sans-serif;
text-align:heart; font-weight:daring; font-size:36px;
line-height:40px; margin: 0 auto; padding: 0;” />
</a>
<desk cellpadding=”0″ cellspacing=”0″ border=”0″>
<tr><td type=”font-size: 1px; line-height: 30px;”>
</td></tr></desk>
</td></tr></desk>
</td></tr></desk>
</code>
Did you discover that it’s lacking ALT attributes and the tables aren’t set to position=”presentation”?
These small oversights have a huge impact on accessibility. Right here’s how a display screen reader interprets the code above:
Display screen reader: Non-accessible e-mail header
https://litmus.com/weblog/wp-content/uploads/2019/04/non-accessible.mp3
And right here is that very same code that’s been refactored by including the ALT=”” attribute and position=”presentation” to <TABLE> tags to be display screen reader-friendly:
<code type=”colour: #fff; background: #333;”>
<desk position=”presentation” width=”100%” cellpadding=”0″
cellspacing=”0″ border=”0″><tr>
<td align=”heart” bgcolor=”#2f343c” valign=”prime”
type=”padding: 0px 15px;”>
<desk position=”presentation” class=”w100p” width=”600″
cellpadding=”0″ cellspacing=”0″ border=”0″><tr>
<td class=”w100p” width=”600″ align=”heart”>
<desk position=”presentation” cellpadding=”0″ cellspacing=”0″
border=”0″>
<tr><td type=”font-size: 1px; line-height: 30px;”>
</td></tr></desk>
<a rel=”noopener” goal=”_blank” rel=”noopener” goal=”_blank” href=”
<img src=”
width=”134″ top=”50″ alt=”Litmus” type=”colour: #ffffff;
font-family:’proxima_nova’, Helvetica, Arial, sans-serif;
text-align:heart; font-weight:daring; font-size:36px;
line-height:40px; margin: 0 auto; padding: 0;” />
</a>
<desk position=”presentation” cellpadding=”0″ cellspacing=”0″
border=”0″>
<tr><td type=”font-size: 1px; line-height: 30px;”>
</td></tr></desk>
</td></tr></desk>
</td></tr></desk>
</code>
Display screen reader: Accessible e-mail header
https://litmus.com/weblog/wp-content/uploads/2019/04/accessible.mp3
As you may hear, there’s fairly a distinction!
Tips on how to code accessible tables for e-mail layouts in Litmus
If there’s one side of accessible coding you’re taking away from this text, it’s including position=presentation to your tables. This can dramatically affect your accessibility and takes little or no time to do.
“Doing that is so necessary as a result of it lets display screen readers know that they don’t must learn it out like a desk,” says Carin. “I got here up by way of e-mail in a really regulated business, and every little thing needed to look a sure manner, so I typically would use tables or bullet factors within the code to do this. These are each necessary instances for ARIA labels to let a display screen reader know that it’s not really meant to be learn that manner.”
Right here’s how you can do it in Litmus:
First, log in to your Litmus account and click on on Litmus Builder. Select from one in every of your templates or begin coding your e-mail instantly with HTML.As you construct your tables, add position=presentation.Once you’re executed, double examine your work within the QA checks tab in Builder. Litmus Accessibility Checker can assist you establish precisely what you’re lacking with dozens of useful accessibility checks.Then, replace your Previews and QA tab to complete your testing course of.Ship it! *completely satisfied dance*
4. Use semantic components to construction your content material
Semantic components make it straightforward to focus on content material hierarchy, exhibiting subscribers (and display screen readers) what’s a headline and what’s paragraph copy. Together with semantic components offers your subscribers who use display screen readers the choice to “scan” by way of an e-mail extra simply.
When double checking your copy, be sure any headline-worthy copy is enclosed inside an <H> tag: <H1>, <H2>, <H3>, and so forth. Equally, be sure any physique copy is housed inside a <P> tag. When going by way of your e-mail, display screen readers put emphasis on particular headers, and organising these <H> and <P> tags will make your e-mail simpler to navigate.
5. Left-align your copy, if attainable
Relating to your physique textual content, it could be tempting to heart align. Nonetheless, relating to accessibility, it is a huge don’t!
Once you heart your textual content, the beginning edge adjustments for each line, which forces your subscribers to work more durable to seek out the start of every line. That’s a problem for folks with dyslexia and different studying impairments.
If in case you have any copy that’s longer than two strains, left-align that duplicate. That is particularly necessary for cellular, for the reason that slender width typically produces extra strains of textual content than chances are you’ll notice. You might must left-align your textual content responsively on cellular.
6. Test the distinction of your copy
Test the distinction ratio of your textual content colours towards the background colours of your e-mail. You might have subscribers which have colour deficits, and in case your colours don’t present sufficient distinction for them, they could not be capable to learn your e-mail. There are two methods you may examine your distinction ratio:
If you want to manually enter your colour codes, try https://contrast-ratio.com/.
Dodging accessible coding errors
In fact, all of us make errors. Right here’s a fast shortcut so you may simply repair your code:
Widespread Accessibility ErrorFix It By…All-image emailsAdding photos the place vital inside the code of your emailNo ALT TextAdding descriptive alt textual content to every picture.Poor colour distinction or disappearing textual content in darkish modeChoosing a colour scheme that has excessive distinction. Suppose reverse sides of the colour wheel.No textual content alignmentLeft-aligning your copy textual content. This makes it a lot simpler for display screen readers (and tbh, everybody.)Disorganized codeAdding position=”presentation” to your tables, and semantic components like<H2>, <H3>, or <p> to create a hierarchy your display screen reader can learn.(Plus it’s cleaner code for you!)
Unlock limitless income
Let’s check out how a lot email-driven income you could possibly be leaving on the desk.
Calculate ROI
Coding for darkish mode
Litmus Market Share exhibits 35% of emails are opened in darkish mode, making it a doubtlessly vital chunk of your subscribers. Because it launched in 2018, it’s created fairly a number of complications for e-mail entrepreneurs—particularly relating to accessibility.
That’s as a result of some e-mail shoppers go away your e-mail precisely as it’s, some e-mail shoppers fully invert your colours, and a few solely partially do.
To ensure any Darkish Mode kinds keep accessible to customers—particularly, that your colour distinction works and is readable to customers with colorblindness or low imaginative and prescient, you need to use two completely different strategies to regulate what your e-mail seems to be like:
@media (prefers-color-scheme: darkish)
This technique works in very a lot the identical manner as making use of a block of kinds inside a @media question on your Cellular Responsive view, besides this CSS block targets any consumer interface that’s set to Darkish Mode. @media (prefers-color-scheme: darkish) lets you create probably the most strong customized Darkish Mode themes the place you may implement something from Darkish Mode-specific picture swaps, hover results, background photos… principally virtually something you are able to do with conventional CSS. This technique requires you so as to add Darkish Mode meta tags and kinds to the <head> of your e-mail with a purpose to work in Apple Mail.
[data-ogsc]/[data-ogsb]
S/O to Mark Robbins for exhibiting us how you can goal the Outlook app. This technique permits for picture swapping on Outlook.com. To do it, duplicate the @media (prefers-color-scheme: darkish) kinds you already utilized and add the suitable [data-ogsc] prefixes to every CSS rule.
Coding accessible, interactive emails
Interactive emails are among the most enjoyable and difficult to create. Including components like polls, surveys, scorching spots, quizzes, supply reveals, and evaluations offers your subscribers an opportunity to interact instantly along with your e-mail. With most of these kind of interactivity, nevertheless, you want a fallback choice or a generic model to make them accessible.
However one in every of our favourite underused interactive components can really assist your accessibility efforts: Hover results.
Coding accessible, interactive emails
Interactive emails are among the most enjoyable and difficult to create. Including components like polls, surveys, scorching spots, quizzes, supply reveals, and evaluations offers your subscribers an opportunity to interact instantly along with your e-mail. With most of these kind of interactivity, nevertheless, you want a fallback choice or a generic model to make them accessible.
However one in every of our favourite underused interactive components can really assist your accessibility efforts: Hover results.
At Litmus, we use hover results on our CTAs, hyperlinks, and pictures to point clickability. Hover results are a easy interactive factor that may make your emails extra participating and enhance your subscribers’ expertise by making them simpler to work together with.
Right here’s how you can do it:
Embed CSS
.txt-color:hover { colour: #8ddaeb !necessary; }
HTML – Textual content Hover Shade Change
<!– begin TEXT HOVER COLOR CHANGE –>
<a rel=”noopener” rel=”noopener” href=”#” type=”colour:#43b9d3; text-decoration:none;”>
<span type=”line-height: 21px;” class=”txt-color”>
Change Shade on Hover</span></a>
<!– finish TEXT HOVER COLOR CHANGE –>
Although hover results are solely supported in AOL, Apple Mail, Gmail, and Yahoo! Mail, they’re a preferred impact and value implementing in your e-mail code. You may fade a picture, change the colour of your CTA button, add a pop-up tab, and extra.
Create emails that everybody can expertise
Maximize your e-mail’s affect by designing accessible content material for all. Accessibility checks are all the time at your fingertips with Litmus.
Construct Accessible Emails
Accessibly coding with e-mail personalization
We frequently consider accessibility as an “additional” side of coding, but it surely’s actually the inspiration of personalization. You may’t construct tailor-made experiences on your subscribers if they will’t learn or click on in your e-mail to start with.
“In e-mail advertising, we discuss rather a lot about 1:1 personalization, however true 1:1 communication is not possible if customers can’t entry your content material,” says Lauren Castady, Associative Inventive Director at Oracle Digital Expertise Company.
Merge tags pull in information out of your ESP or database to personalize phrases, designs, or photos in your e-mail. However what plenty of e-mail entrepreneurs don’t know is that merge tags work in ALT Textual content—so you may nonetheless add personalization out of your photos into your descriptions. For instance, for those who’re sending a “Blissful Birthday [NAME]!” e-mail, you may add an additional message for anybody unable to see these photos.
“Should you’re utilizing a personalised picture with somebody’s identify on it, like a birthday cake, don’t miss the ALT textual content. You may both add a merge tag for an additional layer of personalization or make the ALT textual content generic sufficient that it matches the message with out dropping the expertise. It does take a bit extra coding, however you are able to do it so long as you’ve gotten that information in your ESP.”
Listed below are some examples to attempt:
Generic ALT textual content with a versatile fallback personalization parameter within the picture
<img alt=”an excellent morning cup of espresso for you” src=”
Personalised ALT textual content with a versatile fallback personalization parameter within the picture
<img alt=”Good morning,{{FirstName}} – get pleasure from this cup of espresso!” src=”
Interact with 1:1 experiences
Ship customized content material at scale. Use reside polls, dynamic content material, and superior focusing on to drive outcomes.
Personalize now
Instruments for accessible and inclusive coding
Litmus’ Accessibility Checker, constructed instantly into Litmus Builder and Litmus Previews, offers you visibility into necessary accessibility tips to fulfill the wants of the disabled group.
1. Automated accessibility checks
Scan your e-mail for 40+ accessibility areas, with detailed studies and steering on any points discovered. With Litmus’ E mail Builder, you may examine your code as you’re employed to make sure it meets your subscribers’ wants.
2. Visible impairment filter
Be certain that your e-mail seems to be proper towards 4 completely different visible impairment filters mimicking completely different sorts of colorblindness, so you may double examine design components like colour distinction, detrimental house, and font measurement.
3. NVDA display screen reader preview
Our NVDA display screen reader integration helps over 80 languages so you can also make certain your e-mail seems to be good and sounds good.
These instruments can be found in each single Litmus plan as a result of we imagine that creating extra accessible, inclusive emails is a vital a part of making e-mail advertising higher for everybody.
Begin making a distinction in the present day
Maximize your e-mail’s affect with Litmus to make sure accessibility and inclusivity for all subscribers — irrespective of their skills.
Create Inclusive Emails

Kayla Voigt is a B2B Freelance Author.