Sub topic 10
Making Trust Elements Accessible and Fast
Trust signals only help if every visitor can perceive them and the page loads quickly enough for them to be seen. A testimonial that a screen reader skips, a logo strip that shifts the layout, or a review widget that blocks rendering can cost more trust than the element earns. This chapter covers the working model for accessible and fast trust elements, and the common errors that undermine them.
This chapter assumes you know basic HTML and CSS, and that you have read the earlier chapters on testimonials, logos, reviews, and guarantees. It builds on the placement decisions from the previous chapter.
Why accessibility and performance belong together
Both concerns come from one question: does the evidence reach the visitor in a usable form? Accessibility covers visitors who use screen readers, keyboards, zoom, or high-contrast settings. Performance covers visitors on slow networks or older devices. These groups overlap. A page with semantic markup, sized images, and little script tends to be good for both.
Trust elements are prone to three problems:
- They are often images (logos, portraits, badges), so they depend on alt text and image loading.
- They often come from third-party scripts (review widgets, badge embeds), which add weight and can fail.
- They often sit mid-page or low on the page, where lazy loading and layout shifts are most likely to occur.
Accessibility of trust elements
Use semantic structure
Use the element that matches the content. A testimonial is a quotation with a source, so figure, blockquote, and figcaption keep the three parts together for assistive technology.
<figure class="testimonial">
<blockquote>
<p>We cut onboarding from two weeks to three days.</p>
</blockquote>
<figcaption>
<img src="/img/dana-ortiz.jpg" alt="" width="48" height="48" loading="lazy">
Dana Ortiz, Operations Lead at Example Co.
</figcaption>
</figure>The portrait has empty alt text (alt=""). The person's name is already in the caption text, so announcing the image as well would repeat it. The empty value tells screen readers to skip the image. Leaving out the alt attribute entirely is different: some screen readers then read the file name aloud.
Write alt text by the image's job
Alt text should describe what the image does on the page, not what it looks like. Three cases come up repeatedly:
| Image | Its job | Alt text |
|---|---|---|
| Customer logo in a "Teams that use Acme" list | Names a customer | The company name, such as `Example Co` |
| Customer portrait next to a named quote | Decoration, since the name is in the text | Empty: `alt=""` |
| Third-party badge (for example a security certification) | States a claim | The claim, such as `SOC 2 Type II certified` |
Do not write "logo of" or "image of". Screen readers already announce that the element is an image. Do not stuff alt text with marketing phrases.
A logo that links somewhere is a special case. The alt text then describes the link target, because the image is the only content of the link. If a logo links to a case study, alt="Example Co case study" is more useful than alt="Example Co".
Label the logo strip as a list
A set of logos is a list of customers. Marking it up as a list lets screen reader users hear "list, 3 items" and move through it item by item. Labelling the section with its heading gives it a name in the landmarks menu.
<section aria-labelledby="customers-heading">
<h2 id="customers-heading">Teams that use Acme</h2>
<ul class="logo-strip">
<li><img src="/logos/example-co.svg" alt="Example Co" width="120" height="32" loading="lazy"></li>
<li><img src="/logos/sample-labs.svg" alt="Sample Labs" width="120" height="32" loading="lazy"></li>
<li><img src="/logos/demo-works.svg" alt="Demo Works" width="120" height="32" loading="lazy"></li>
</ul>
</section>One known gotcha: in Safari with VoiceOver, a list styled with list-style: none may stop being announced as a list. If the list announcement matters to you, add role="list" to the ul. The example above keeps the markup minimal, so check your own target browsers.
Keep contrast when you mute logos
Designers often render logos in grayscale at reduced opacity so mixed brand colors look consistent.
.logo-strip {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
align-items: center;
list-style: none;
padding: 0;
}
.logo-strip img {
height: 32px;
width: auto;
filter: grayscale(1);
opacity: 0.8;
}This is acceptable when the logos are identifiable and the names are also available as alt text. Be careful with lower opacity values. Logos that are faint become hard to recognise for low-vision users, and a logo nobody can read earns no trust. If you lower opacity below the value shown, check how the logos look at your page's actual background color.
Make ratings available as text
Star graphics are images. A visitor who cannot see them needs the number in text. Show the rating and the review count as real text, and hide the decorative stars from assistive technology.
<p class="rating">
<span aria-hidden="true">★★★★★</span>
<span class="rating-text">4.6 out of 5 from 212 reviews</span>
</p>Do not rely on color alone to show a rating, such as green for good and red for bad. Always put the value in words or digits too.
Keep interactive trust elements keyboard-friendly
Some trust elements are interactive: review carousels, "read more" toggles on testimonials, filter controls on a review list, and badge pop-ups. Check these points:
- Every control can be reached and operated with the keyboard alone.
- The focus indicator is visible. Do not remove
outlinewithout a replacement. - Auto-advancing testimonial carousels have a pause control. Moving content that cannot be stopped fails WCAG 2.2.2 (Pause, Stop, Hide) when it runs longer than five seconds.
- Carousels do not hide content from keyboard users. Often a simple static list of three testimonials is better than a carousel, for accessibility and for conversion, because visitors rarely click through to the second slide.
Make guarantees readable
A guarantee is plain text near a button, so it is usually accessible by default. Keep it that way. Do not turn the guarantee into an image of text, because it cannot be zoomed cleanly, translated, or read aloud. Make sure the link to the full refund terms has descriptive text, such as "Read the full refund terms", not "Click here".
<div class="guarantee">
<h3>30-day money-back guarantee</h3>
<p>If Acme is not right for you, email us within 30 days of purchase and we will refund the full price.</p>
<p><a href="/refund-policy">Read the full refund terms</a></p>
</div>
<button type="submit">Start your plan</button>Respect motion preferences
If you animate logo marquees, counters that count up to a customer total, or sliding testimonials, honor the visitor's operating system setting for reduced motion.
@media (prefers-reduced-motion: reduce) {
.logo-marquee,
.testimonial-slider {
animation: none;
transition: none;
}
}A scrolling logo marquee is also a performance and legibility problem: the names move, so they are hard to read. A static strip is usually better.
Performance of trust elements
Reserve space to prevent layout shift
Cumulative Layout Shift (CLS) is a Core Web Vitals metric that measures how much visible content moves unexpectedly while the page loads. Trust elements are common culprits. A logo strip or portrait that loads late pushes the text below it down, and a visitor who was about to tap a button taps the wrong thing.
The fix is to tell the browser the image size before the image arrives. Set width and height attributes on each img. Browsers use them to compute an aspect ratio and reserve the space. In the logo strip above, each logo has width="120" height="32", so three rows of logos take up their space immediately.
For embedded widgets that you do not control, reserve space with CSS:
.review-widget {
min-height: 320px;
}Pick a min-height close to the widget's real rendered height. Too small and the page still shifts. Too large and you leave a visible gap.
Lazy-load below the fold, not above it
The loading="lazy" attribute tells the browser to delay fetching an image until the visitor scrolls near it. It suits trust elements that sit lower on the page, such as a customer logo strip after the hero section, or testimonial portraits.
Do not lazy-load images in the first screen. If a trust element sits inside the initial viewport, such as a press logo row directly under the headline, lazy loading delays it, and it can delay the Largest Contentful Paint (LCP) if it is the largest element. For above-the-fold elements, leave out loading="lazy".
The examples in this chapter use loading="lazy" because the logo strip and testimonials appear after the hero. Adjust this to your own page layout.
Use efficient image formats
Logos are usually simple shapes, so SVG is a good fit. SVG files are small, stay sharp at every size, and can be styled with CSS. Two cautions apply:
- Strip unneeded metadata and embedded raster data from SVG files. Run them through an optimizer.
- Do not inline untrusted SVG from user uploads. SVG can contain script. Logos you supply yourself are fine.
For portraits, use a modern format such as WebP or AVIF with a JPEG fallback, and export at the size you display. A portrait shown at 48 by 48 CSS pixels needs roughly 96 by 96 pixels for sharp display on a high-density screen. Shipping a 2000-pixel photo wastes bandwidth.
<picture>
<source srcset="/img/dana-ortiz.avif" type="image/avif">
<source srcset="/img/dana-ortiz.webp" type="image/webp">
<img src="/img/dana-ortiz.jpg" alt="" width="48" height="48" loading="lazy">
</picture>Control third-party scripts
Review platforms, badge providers, and chat-style "recent purchase" popups usually ship as third-party JavaScript. Each one adds a network request, JavaScript execution time, and a dependency on someone else's server. The common errors are:
- Loading a widget script synchronously in the
head, which blocks rendering. - Loading several badge scripts that each fetch their own fonts and styles.
- Failing to plan for the case where the script does not load, which leaves an empty box.
Practical measures:
- Load widget scripts with
asyncordefer, or load them only when the widget approaches the viewport. - Prefer a static rendering of the data when you can. If you have a review count and an average, you can print them as HTML from your own server and link to the full reviews, rather than loading a widget just for two numbers.
- Render a text fallback inside the widget container, so visitors see something if the script fails.
- Audit each third-party trust script with a performance tool and ask whether its contribution to trust justifies its cost.
A static rendering also helps search engines and screen readers, because the content is in the HTML from the start and does not depend on script execution.
Keep structured data in sync with visible content
Review markup in JSON-LD is a small file-size cost, but it has a correctness requirement that connects to this chapter. If your visible review text is injected late by a widget, make sure the same reviews appear in the page that visitors actually see. Marked-up reviews that visitors cannot see on the page break search engine guidelines, as covered in the structured data chapter.
A checklist you can run
Apply this list to any page with trust elements.
- Does every informative image have alt text that names its job, and every decorative image have
alt=""? - Are logo strips and review lists marked up as lists with a labelled section?
- Are ratings and review counts present as text, not only as star graphics?
- Can every interactive element be used with the keyboard, and can moving content be paused?
- Do all images have
widthandheight, and do embedded widgets reserve space? - Are only below-the-fold images lazy-loaded?
- Are third-party scripts deferred, and is there a fallback if they fail?
- Are logos at least legible after any grayscale or opacity styling?
How the pieces fit together
Common errors
| Error | Effect | Fix |
|---|---|---|
| Missing `alt` attribute on a portrait | Some screen readers read the file name | Add `alt=""` when the name is in nearby text |
| Logo names only inside the image pixels | Customer names are lost to screen reader users | Give each logo alt text with the company name |
| No `width` and `height` on images | Layout shifts as images load | Set both attributes and use `height: auto` or fixed sizes in CSS |
| Lazy-loading the first-screen trust row | Slower first paint of key content | Remove `loading="lazy"` above the fold |
| Auto-rotating testimonial carousel with no pause | Fails WCAG 2.2.2 and hides content | Use a static list or add a pause control |
| Review widget loaded synchronously | Render-blocking, slower page | Use `async` or `defer`, or load near the viewport |
| Star rating shown only as an image | Rating is invisible to assistive technology | Add the rating and count as text |
Exercises
Exercise
A page has a logo strip directly under the headline in the first screen. Each img has loading="lazy", and none has width or height. Name two problems and give the fix for each.
Show answer
First, lazy loading delays images that are visible immediately, which slows the first render of key content. Remove loading="lazy" from above-the-fold images. Second, without width and height the browser cannot reserve space, so the layout shifts when each logo loads and raises CLS. Add width and height attributes that match the logo's displayed size.
Exercise
A testimonial shows a portrait next to the caption "Dana Ortiz, Operations Lead at Example Co." What should the portrait's alt be, and why? What changes if the portrait is a link to Dana's case study?
Show answer
Use alt="", because the name is already in the caption and a spoken description would repeat it. If the portrait is a link, the image is the link's only content, so the alt text must describe the destination, for example alt="Read Dana Ortiz's case study". An empty alt on a lone linked image would leave the link without a name.
Exercise
Your review section loads through a third-party script that blocks rendering. You have a stored average rating of 4.6 and 212 reviews. Describe a lighter approach that keeps the information available to every visitor.
Show answer
Print the average and count as text in your own HTML, for example "4.6 out of 5 from 212 reviews", with decorative stars set to aria-hidden="true", and link to the full review list. Load the widget with async or defer, or only when it nears the viewport, and put a min-height on its container to prevent layout shift. Keep the text fallback inside the container in case the script fails.