Keep a banner offer in the landing page HTML

Keep the value, conditions and destination usable on a campaign landing page even when its image does not load.

Asset preparation3 min read

A campaign landing page can lose its offer when the banner is blocked or fails to load. Keep the offer, its qualifying conditions and the action in the page's HTML, where they remain readable and usable independently of the image. This guide applies to a hosted landing page whose HTML you can edit; a third-party ad placement may provide different fields and constraints.

Put the complete offer beside the image

Suppose a landing page advertises 20% off a first order of $50 or more. The meaningful offer is not simply “20% off”: the minimum and first-order limit change who can use it. Keep those conditions visible with the value, and make the action a real link to the relevant collection.

HTML
<section aria-labelledby="offer-title">
  <img src="campaign.jpg" alt="" />
  <h2 id="offer-title">20% off your first order</h2>
  <p>On orders of $50 or more.</p>
  <a href="/collections/spring">Shop the spring collection</a>
</section>

This is a fictional example: replace the value, conditions and destination with the approved campaign details. The image is decorative in this example because it adds no information needed to understand or use the offer. If your image conveys additional information, provide an appropriate text alternative; the choice depends on its purpose and surrounding text.

Style the HTML text and link with CSS, and provide a background color that keeps them readable if the image disappears. The link destination must actually contain the advertised offer or explain how to claim it. Do not rely on a coupon code, expiry date or exclusion embedded only in the artwork: include any condition necessary to understand this specific offer in the live content too.

Test with the image unavailable

  1. Open the published or preview landing page and block the banner image request in browser developer tools, then reload. Blocking the request also exercises a failed image load; simply hiding the image with CSS may leave a background image or another asset untested.
  2. Read what remains without consulting the original banner. For the example above, you must still find “20% off,” “first order,” and “$50 or more.” If the minimum is missing, the page fails this check even if the headline and link remain.
  3. Follow the live link and confirm it reaches the intended collection and the offer can be found or claimed there. Check keyboard focus and activation as well.
  4. Restore image loading, compare the live text against the approved artwork and terms, and check that the two versions agree. Repeat after the campaign terms change.

Also enlarge the text and inspect it at a narrow viewport: the condition and action must remain readable and not overlap or disappear. An image-off check alone does not establish full accessibility.

Where this guidance applies

W3C's Images of Text tutorial recommends styled text for text intended to be read because it can be resized and restyled. When an image of text must be used, the tutorial says its text alternative should contain the same text. WCAG 2.2 success criterion 1.4.5 has conditions and exceptions, including customizable and essential presentations; its definition also distinguishes an image of text from text within a picture with significant other visual content. The practical image-off check above is a campaign QA step, not a complete conformance assessment.

An ad network's image-only creative may not let you add HTML inside the ad. Use the platform's available text and destination fields, follow its format requirements, and make the landing page complete on its own. This does not make claims about every ad platform's accessibility behavior.

If the same offer goes out by email, check the received message with images blocked and compare its terms with this page.

Image tools
All guides
Keep a banner offer in the landing page HTML | Formatry Media — Formatry