Skip to main content

New Introducing the Holiday Hub — seasonal templates and ideas to plan your holiday campaigns in one place.Introducing the Holiday Hub.Explore the Holiday Hub

How to create ADA-compliant campaigns

All plans Last reviewed

To make a campaign accessible to people with disabilities, use live text instead of text in images, add alt text to every image, set main tags so screen readers understand the layout, check your color contrast meets WCAG's 4.5:1 minimum, and test the campaign with only a keyboard. ShortStack forms already help screen reader users with errors and messages.

What to check

StepWhy it matters
Use live textScreen readers can read typed text, but not text inside an image.
Add alt text to imagesAlt text describes an image to people who can't see it.
Set main tagsTags such as header and footer tell screen readers how the page is laid out.
Check color contrastLow contrast makes text hard to read for people with low vision.
Test with a keyboardSome visitors use the Tab key instead of a mouse.

What ShortStack does for you

ShortStack forms already help visitors who use screen readers:

  • When a form has an error, the page scrolls to the first error and moves focus to that field.
  • Error messages and field instructions are linked to their fields, so screen readers read them at the right moment.
  • Status messages above the submit button, such as "Sending, please wait…", are announced to screen readers.
  • Forms always use the HTML form tag.

1. Use live text

Live text is text you type into a widget, so screen readers can read it. Use it instead of putting text in an image. Live text includes:

  • text in a Rich Text Widget;
  • button labels;
  • field labels and placeholder text in a Field Widget;
  • the prompt text in a Share Widget.

2. Add alt text to images

  1. Open the Image Widget's settings.
  2. Go to Options.
  3. In Alt Text, describe the image, such as "A family opening presents by a Christmas tree."
  4. Click Save and Exit.

Background images can't have alt text. Keep text out of them, and put it in a Rich Text Widget over a simple background instead. See Image Widget.

3. Set main tags

Every widget uses the <div> tag by default, which tells a screen reader nothing about what it holds. Give each part of the campaign a meaningful tag instead:

  1. Open the widget's settings by clicking its pencil icon.
  2. Go to Extras.
  3. Choose a tag from Main Tag.
  4. Click Save and Exit.
TagUse it for
<header>The top of the campaign, such as the logo and headline.
<main>The main content.
<section>A distinct part of the campaign, such as the prize details.
<article>A self-contained piece of content.
<aside>Content beside the main content, such as a tip.
<address>Contact details.
<footer>The bottom of the campaign, such as the rules link.
<div>No particular meaning. The default.

Forms and Form Containers always use the form tag, so they don't have this setting. See Widget Extras.

4. Check color contrast

To meet the Web Content Accessibility Guidelines (WCAG) at level AA:

WhatMinimum contrast with its background
Text4.5:1
Large text: 24px or larger, or about 19px and bold3:1
Buttons, form fields and icons3:1

Change text, button and background colors in the Style Panel. Check the result with a tool such as WAVE.

5. Test with a keyboard

Some visitors can't use a mouse and move through the page with the Tab key. Open your campaign and, using only the keyboard:

  • press Tab to move through every button, link and field, and check the order makes sense;
  • check you can always see which item has focus;
  • fill in and submit the form.

If something goes wrong

What you seeWhat to do
A screen reader skips text in your campaignIt's probably part of an image. Type the text in a Rich Text Widget instead.
A widget has no Main Tag optionForms and Form Containers always use the form tag. Other widgets have it under Extras.
WAVE reports contrast errorsChange the text or background color in the Style Panel until the ratio meets the minimum.

FAQs

If I follow these steps, is my campaign ADA compliant?

These steps make a campaign much more accessible, but whether it meets the ADA or WCAG depends on all of its content. Test it with a tool such as WAVE, and get advice if you need to be sure.

Can I add alt text to a background image?

No. Keep text out of background images, and put it in a Rich Text Widget over a simple background instead.

What contrast ratio do I need?

At least 4.5:1 between text and its background, or 3:1 for large text and for buttons and form fields. Large text is 24px or larger, or about 19px and bold.

Was this helpful?