Sub topic 2
Testimonials: specific, attributed, and believable
This chapter assumes you know basic HTML and CSS, you can recognize landing, product, and pricing pages, and you know what a conversion rate is. It covers how to write and mark up a testimonial so visitors believe it.
What a testimonial does
A testimonial is a statement from a real customer about their experience. It answers a visitor's silent question: "Did this work for someone like me?" A claim you make about yourself is easy to dismiss. A claim from a named customer carries more weight, but only if the visitor can judge who said it and whether it is plausible.
Three qualities decide whether a testimonial is believable:
- Specific: it states a result, a situation, or a detail.
- Attributed: it names a real person with a role and company.
- Verifiable: a visitor could check it, for example through a linked case study or a profile.
Specific beats enthusiastic
Compare two quotes for the same product.
| Weak | Strong |
|---|---|
| "Great product! Highly recommend." | "We cut onboarding from two weeks to three days." |
| "Acme changed our business." | "Support answered my billing question in under ten minutes." |
The weak quotes could be about anything and could be invented in seconds. The strong quotes contain a number or an event. They also address a concrete doubt, such as "Will this take too long to set up?"
Ask customers open questions to get specifics: what problem they had before, what changed, and what result they can measure. Then edit only for length and clarity. Keep their meaning and their voice, and get their approval of the final text.
Attribution
An anonymous quote ("A happy customer") reads as made up. Give each testimonial at least:
- A full name.
- A role.
- A company, when the customer is a business.
A photo adds a human cue, but it is optional. If a customer cannot be named, say why honestly (for example, "Operations lead at a logistics company, name withheld at their request") rather than inventing a name.
Marking up a testimonial
Use figure, blockquote, and figcaption. This keeps the quote, the person, and their role together in the document structure, so assistive technology and search engines read them as one unit.
<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>Points to notice:
- The
altattribute is empty on purpose. The portrait is decorative, because the person's name is already in the text. A screen reader skips it instead of reading the name twice. widthandheightreserve space, so the page does not jump when the image loads.loading="lazy"delays the image until it is near the viewport. Do not use it on images that appear in the first screen.
A small amount of CSS keeps the quote readable and the attribution clearly separate:
.testimonial {
margin: 0;
padding: 1.5rem;
border-left: 4px solid #2a6df4;
background: #f6f8fb;
}
.testimonial blockquote {
margin: 0 0 1rem;
font-size: 1.25rem;
}
.testimonial figcaption {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.9rem;
color: #444;
}
.testimonial img {
border-radius: 50%;
}The #444 text on #f6f8fb has enough contrast for body-size text. Check any colors you change.
How a visitor evaluates one
Common errors
- Generic praise. Replace it with a result or a detail.
- Stock photos. Visitors recognize them, and one fake photo can discredit every other quote on the page.
- Wall of quotes. Three or four strong, varied testimonials beat twenty weak ones. Pick quotes that match different objections: price, setup time, support.
- Edited meaning. Trimming for length is fine. Changing what the customer said is not. Chapter 7 covers the legal limits.
- Missing permission. Get written consent to use a person's name, photo, and words.
- Quote only in an image. Text in an image cannot be read by screen readers or searched. Keep the quote as real text.
Exercise
A landing page shows the testimonial "Amazing service, five stars!" with the attribution "J.S., happy customer" and a stock photo with alt text "smiling woman". Name three problems and say how you would fix each.
Show answer
(1) The quote is generic. Ask the customer for a concrete result or situation, such as time saved or a problem solved. (2) The attribution is not credible. Use a full name, role, and company, with the customer's permission. (3) The photo is a stock image with misleading alt text. Use a real photo with consent, or omit it, and give it empty alt text when the name is already written beside it.
Exercise
Why does the sample markup use alt="" on the portrait inside the figcaption?
Show answer
The person's name is already in the caption text, so the portrait adds no new information. An empty alt value marks the image as decorative, and screen readers skip it instead of repeating the name.