Testimonial design: eight card designs and what makes them work
Eight testimonial card designs to copy as HTML and CSS, the parts every card needs, and the sizes and colours that keep a card readable.
Published
A testimonial does its work only if a visitor reads it, and believes it. Both come down to design: what sits on the card, how big the words are, and whether the colours can be read.
This guide is about the testimonial itself: the parts of a card, eight designs to copy as HTML and CSS, and the sizes and colours that keep them readable. Where testimonials go on a page, and which layout to use, is covered in how to design a testimonial page.
The parts of a testimonial card
- The customer's words. Every card.
- One line that stands out. When the words run long.
- Their name. Every card.
- Their role, company or town. Every card.
- Their photo. When they agreed to one.
- Their star rating. Only when they gave one.
- When they said it. When it is recent.
Three parts go on every card: the customer's words, their name, and something that places them, such as a role, a company or a town. Without the last two, a quote reads as if you wrote it yourself.
The others earn their place when you have them. A photo makes a card feel real, but only a photo the customer sent or agreed to. Stars belong only on a testimonial that came with a rating. A date helps while the testimonial is recent.
| Part | What it does | What research says |
|---|---|---|
| The words | Carry the point. A detail beats an adjective | The same statement in concrete words was judged more likely to be true than in abstract ones (Hansen and Wänke, 2010), and readers rated a concrete review more helpful (Li, Huang, Tan and Wei, 2013). |
| Name, and role or town | Say who is speaking, so it cannot be you | 35% of consumers count a named reviewer as something that makes a review matter (BrightLocal, 2026). People doubt testimonials on a company's own site and suspect only good ones are shown (Nielsen Norman Group, 2016). |
| Photo | Shows a real person | Users look at photos of real people and pass over stock photos (Nielsen Norman Group, 2010). A photo beside a claim made people more likely to believe it (Newman, Garry, Bernstein, Kantner and Lindsay, 2012). |
| Star rating | A score at a glance | The chance of a purchase peaked at 4.2 to 4.5 stars, then fell towards 5 (Maslowska, Malthouse and Bernritter, 2017), and 46% of shoppers distrust a perfect five out of five (PowerReviews, 2021). |
| Date | Shows it is current | 44% count a review posted in the last month as one that matters (BrightLocal, 2026). |
The same survey asked what makes a review count. Being named, having a photo and being recent all made the list, behind agreement with other reviews:
Show the numbers as a table
| What makes a review count | Share of consumers, % |
|---|---|
| Other reviews say the same | 56 |
| It describes a good experience | 46 |
| It was posted in the last month | 44 |
| It has a high star rating | 42 |
| The owner replied to it | 37 |
| It has a good photo or video | 36 |
| The reviewer is named | 35 |
| It is long and detailed | 26 |
Eight card designs to copy
Each design below is a sample in plain HTML and CSS, with no JavaScript. Copy it, paste it into your page or into your site builder's HTML block, and replace the sample words with your customer's own. Every text colour in them is at least 4.5:1 against its background, the level WCAG asks for, and the stars are above the 3:1 it asks of a graphic.
| Design | Use it for | Words it suits |
|---|---|---|
| 1. Plain card | Any page; a row of three | One to three sentences |
| 2. With a photo | Services sold by people: coaching, trades, agencies | One to three sentences |
| 3. With a star rating | Testimonials that came with a rating | One to three sentences |
| 4. With a headline | Long testimonials, so a skimmer still gets the point | A paragraph |
| 5. Featured quote | The top of the home page, or one per page | One sentence |
| 6. Leads with a result | A number the customer gave you: time, money, sales | Two or three sentences with a figure |
| 7. One line | Beside a button, under a price, at checkout | Under ten words |
| 8. Before and after | A change the customer can describe in two halves | Two short halves |
1. Plain card
The design to start with. A border, the words, and the person. Nothing competes with the testimonial, and three of them sit well in a row.
Plain card: HTML and CSS
<!-- A sample testimonial, written for this guide. Replace it with your customer's own words. -->
<figure class="tq-plain">
<blockquote>
<p>“They rebuilt our booking page in a week, and online bookings went from four a week to eleven.”</p>
</blockquote>
<figcaption><b>Dana R.</b> Studio owner, Leeds</figcaption>
</figure>
<style>
.tq-plain {
box-sizing: border-box;
max-width: 26rem; /* about 60 characters a line */
margin: 0;
padding: 1.5rem;
border: 1px solid #d5d9e4;
border-radius: 12px;
background: #ffffff;
color: #1b2033; /* 16.1:1 on white */
}
.tq-plain blockquote {
margin: 0 0 1rem;
font-size: 1.0625rem;
line-height: 1.55;
}
.tq-plain p {
margin: 0;
}
.tq-plain figcaption {
font-size: 0.9375rem;
line-height: 1.4;
color: #4a5068; /* 7.9:1 on white */
}
.tq-plain b {
display: block;
color: #1b2033;
}
</style>2. Card with a photo
A face beside the words. Keep every photo the same size and shape, and crop them the same way, so a row of cards looks like one set. The photo's alt is empty because the name beside it already says who it is; a screen reader would otherwise read the name twice.
Card with a photo: HTML and CSS
<!-- A sample testimonial, written for this guide. Replace it with your customer's own words. -->
<figure class="tq-photo">
<blockquote>
<p>“I expected to wait days for an answer. The reply came within the hour, and it fixed the problem.”</p>
</blockquote>
<figcaption>
<!-- alt is empty because the name beside the photo already says who this is. -->
<img src="customer-photo.jpg" alt="" width="48" height="48">
<span><b>Tomás G.</b> Shop manager, Valencia</span>
</figcaption>
</figure>
<style>
.tq-photo {
box-sizing: border-box;
max-width: 26rem;
margin: 0;
padding: 1.5rem;
border: 1px solid #d5d9e4;
border-radius: 12px;
background: #ffffff;
color: #1b2033; /* 16.1:1 on white */
}
.tq-photo blockquote {
margin: 0 0 1.25rem;
font-size: 1.0625rem;
line-height: 1.55;
}
.tq-photo p {
margin: 0;
}
.tq-photo figcaption {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.9375rem;
line-height: 1.4;
color: #4a5068; /* 7.9:1 on white */
}
.tq-photo img {
flex: none;
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
}
.tq-photo b {
display: block;
color: #1b2033;
}
</style>3. Card with a star rating
Stars only where the customer gave a rating, never added to a quote that came without one. The stars are hidden from screen readers and replaced by words, "Rated 5 out of 5", which is what a listener needs. Their gold is 3.6:1 against white; the common bright yellow is 1.8:1 and fades out.
Card with a star rating: HTML and CSS
<!-- A sample testimonial, written for this guide. Replace it with your customer's own words. -->
<!-- Show stars only when the customer gave the rating. -->
<figure class="tq-stars">
<p class="tq-stars-rating">
<span aria-hidden="true">★★★★★</span>
<span class="tq-stars-text">Rated 5 out of 5</span>
</p>
<blockquote>
<p>“We had tried two other suppliers. This is the first one that delivered on the day it promised.”</p>
</blockquote>
<figcaption><b>Aiko M.</b> Café owner, Osaka</figcaption>
</figure>
<style>
.tq-stars {
box-sizing: border-box;
max-width: 26rem;
margin: 0;
padding: 1.5rem;
border: 1px solid #d5d9e4;
border-radius: 12px;
background: #ffffff;
color: #1b2033; /* 16.1:1 on white */
}
.tq-stars p {
margin: 0;
}
.tq-stars-rating {
margin-bottom: 0.75rem !important;
font-size: 1.25rem;
letter-spacing: 0.1em;
color: #b07d00; /* 3.6:1 on white; WCAG asks 3:1 of a graphic */
}
/* The words a screen reader says instead of the stars. Hidden from view, not from it. */
.tq-stars-text {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.tq-stars blockquote {
margin: 0 0 1rem;
font-size: 1.0625rem;
line-height: 1.55;
}
.tq-stars figcaption {
font-size: 0.9375rem;
line-height: 1.4;
color: #4a5068; /* 7.9:1 on white */
}
.tq-stars b {
display: block;
color: #1b2033;
}
</style>4. Card with a headline
For a long testimonial. The headline is a phrase the customer wrote, lifted out and set large, so a visitor who reads only the headline still gets the point. Keep its quotation marks: they show the words are the customer's, not yours.
Card with a headline: HTML and CSS
<!-- A sample testimonial, written for this guide. Replace it with your customer's own words. -->
<!-- The headline is a phrase from the testimonial itself, so it keeps its quotation marks. -->
<figure class="tq-headline">
<p class="tq-headline-title">“Bookings went from four a week to eleven”</p>
<blockquote>
<p>“We had put off fixing our booking page for years. They rebuilt it in a week. In the first month, bookings went from four a week to eleven, and the phone stopped ringing with questions the page now answers.”</p>
</blockquote>
<figcaption><b>Dana R.</b> Studio owner, Leeds</figcaption>
</figure>
<style>
.tq-headline {
box-sizing: border-box;
max-width: 30rem;
margin: 0;
padding: 1.5rem;
border: 1px solid #d5d9e4;
border-top: 4px solid #2440d9;
border-radius: 12px;
background: #ffffff;
color: #1b2033; /* 16.1:1 on white */
}
.tq-headline p {
margin: 0;
}
.tq-headline-title {
margin-bottom: 0.75rem !important;
font-size: 1.25rem;
font-weight: 700;
line-height: 1.3;
}
.tq-headline blockquote {
margin: 0 0 1rem;
font-size: 1rem;
line-height: 1.6;
color: #4a5068; /* 7.9:1 on white */
}
.tq-headline figcaption {
font-size: 0.9375rem;
line-height: 1.4;
color: #4a5068;
}
.tq-headline b {
display: block;
color: #1b2033;
}
</style>5. Featured quote
One testimonial, set large and centred, with no card around it. Use it once on a page, at the top or before your main button, for the sentence that answers the doubt most visitors have.
Featured quote: HTML and CSS
<!-- A sample testimonial, written for this guide. Replace it with your customer's own words. -->
<figure class="tq-featured">
<blockquote>
<p>“Clear quote, no surprises on the invoice, and the work was finished a day early.”</p>
</blockquote>
<figcaption><b>Priya S.</b> Homeowner, Pune</figcaption>
</figure>
<style>
.tq-featured {
box-sizing: border-box;
max-width: 40rem;
margin: 0 auto;
padding: 2rem 1rem;
text-align: center;
color: #1b2033; /* 16.1:1 on white */
}
.tq-featured blockquote {
margin: 0 0 1.25rem;
font-size: clamp(1.375rem, 1rem + 1.5vw, 1.875rem);
font-weight: 500;
line-height: 1.35;
}
.tq-featured p {
margin: 0;
}
.tq-featured figcaption {
font-size: 1rem;
line-height: 1.4;
color: #4a5068; /* 7.9:1 on white */
}
/* A short line between the words and the name. */
.tq-featured figcaption::before {
content: "";
display: block;
width: 2.5rem;
height: 3px;
margin: 0 auto 1rem;
background: #2440d9;
}
.tq-featured b {
display: block;
color: #1b2033;
}
</style>6. Card that leads with a result
When the customer gave you a number, put the number first. Use only a figure that appears in their words below it, and give it a plain label: a number on its own invites the question "of what?"
Card that leads with a result: HTML and CSS
<!-- A sample testimonial, written for this guide. Replace it with your customer's own words. -->
<!-- The number comes from the customer's words, below it. -->
<figure class="tq-result">
<p class="tq-result-number">9 in 10 <span>invoices now paid before they are due</span></p>
<blockquote>
<p>“We used to spend Friday afternoons chasing invoices. Now 9 in 10 are paid before they are due, and Friday is ours again.”</p>
</blockquote>
<figcaption><b>Marcus L.</b> Operations lead, Austin</figcaption>
</figure>
<style>
.tq-result {
box-sizing: border-box;
max-width: 26rem;
margin: 0;
padding: 1.5rem;
border: 1px solid #d5d9e4;
border-radius: 12px;
background: #ffffff;
color: #1b2033; /* 16.1:1 on white */
}
.tq-result p {
margin: 0;
}
.tq-result-number {
margin-bottom: 1rem !important;
font-size: 2.25rem;
font-weight: 700;
line-height: 1.1;
color: #2440d9; /* 7.4:1 on white */
}
.tq-result-number span {
display: block;
margin-top: 0.25rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.4;
color: #4a5068; /* 7.9:1 on white */
}
.tq-result blockquote {
margin: 0 0 1rem;
font-size: 1.0625rem;
line-height: 1.55;
}
.tq-result figcaption {
font-size: 0.9375rem;
line-height: 1.4;
color: #4a5068;
}
.tq-result b {
display: block;
color: #1b2033;
}
</style>7. One line, beside a button
A few words and a name, small enough to sit under a price or beside a checkout button. Short enough for italics, which make longer passages harder to read.
One line, beside a button: HTML and CSS
<!-- A sample testimonial, written for this guide. Replace it with your customer's own words. -->
<figure class="tq-line">
<blockquote>“Ordered on Monday, fitted on Thursday.”</blockquote>
<figcaption>Sam K., homeowner, Bristol</figcaption>
</figure>
<style>
.tq-line {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.25rem 0.5rem;
margin: 0;
padding-left: 0.75rem;
border-left: 3px solid #2440d9;
font-size: 0.9375rem;
line-height: 1.4;
color: #1b2033; /* 16.1:1 on white */
}
.tq-line blockquote {
margin: 0;
font-style: italic; /* short enough to stay readable in italics */
}
.tq-line figcaption {
color: #4a5068; /* 7.9:1 on white */
}
</style>8. Before and after
Two halves of one testimonial: how it was, and how it is now. Side by side on a wide screen, one above the other on a phone. Both halves must come from the same customer, in their words.
Before and after: HTML and CSS
<!-- A sample testimonial, written for this guide. Replace it with your customer's own words. -->
<!-- Both halves come from the same testimonial. -->
<figure class="tq-change">
<div class="tq-change-grid">
<div>
<p class="tq-change-label">Before</p>
<blockquote><p>“Six years of receipts in a spreadsheet, and every Sunday evening spent on them.”</p></blockquote>
</div>
<div class="tq-change-after">
<p class="tq-change-label">After</p>
<blockquote><p>“The tax letter came in June and I simply forwarded it. Sundays are for my family now.”</p></blockquote>
</div>
</div>
<figcaption><b>Owner</b>, bakery in Leeds</figcaption>
</figure>
<style>
.tq-change {
box-sizing: border-box;
container-type: inline-size;
max-width: 40rem;
margin: 0;
padding: 1.5rem;
border: 1px solid #d5d9e4;
border-radius: 12px;
background: #ffffff;
color: #1b2033; /* 16.1:1 on white */
}
.tq-change p,
.tq-change blockquote {
margin: 0;
}
.tq-change-grid {
display: grid;
gap: 0.75rem;
margin: 0 0 1rem;
font-size: 1.0625rem;
line-height: 1.55;
}
.tq-change-grid > div {
padding: 1rem;
border-radius: 8px;
background: #f4f5f8; /* the text on it is 14.8:1 */
}
.tq-change-grid > .tq-change-after {
background: #eef2fd; /* the text on it is 14.4:1 */
}
.tq-change-label {
margin-bottom: 0.25rem !important;
font-size: 0.8125rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #4a5068; /* 7.3:1 on the grey */
}
.tq-change-after .tq-change-label {
color: #1a30ad; /* 9.0:1 on the blue */
}
.tq-change figcaption {
font-size: 0.9375rem;
line-height: 1.4;
color: #4a5068; /* 7.9:1 on white */
}
/* Side by side once the card is wide enough for two short columns. */
@container (min-width: 30rem) {
.tq-change-grid {
grid-template-columns: 1fr 1fr;
}
}
</style>Sizes that keep a card readable
The numbers below come from accessibility standards and reading research. A card that meets them reads well on a phone in daylight, at the zoom level a visitor needs, and with a screen reader.
| Rule | The number | Where it comes from |
|---|---|---|
| Line length | 50 to 75 characters a line: a card about 26rem wide at 17px | Baymard Institute, 2022 |
| Text size | 16 to 19px for the words; the name and role a step smaller | British Dyslexia Association, 2023 |
| Text contrast | 4.5:1, or 3:1 for large text (about 24px, or 18.5px bold) | WCAG 1.4.3, level AA |
| Stars, arrows and dots | 3:1 against the colour beside them | WCAG 1.4.11, level AA |
| Buttons and dots | At least 24 by 24 pixels, or spaced so they do not crowd each other | WCAG 2.5.8, level AA |
| Cards that move by themselves | A way to pause or stop them, if they move for more than 5 seconds | WCAG 2.2.2, level A |
| Narrow screens | Each card fits in 320 pixels without scrolling sideways | WCAG 1.4.10, level AA |
| Height | No fixed height: the words must not be cut off when a visitor spaces them out | WCAG 1.4.12, level AA |
| Italics | A few words at most; longer quotes upright | Butterick's Practical Typography |
| Photo description | Empty, when the name beside the photo says who it is | W3C images tutorial |
Colours that can be read
Most cards fail on the small text. The name and role are often set in a light grey to look quiet, and light grey on white is hard to read for many people, on a phone in sunlight for everyone. Stars fail the same way when they are bright yellow.
| Colours | How it looks | Ratio | Text (needs 4.5:1) | Large text and stars (need 3:1) |
|---|---|---|---|---|
| Near-black on white | #1b2033 on #ffffff | 16.1:1 | Passes | Passes |
| Dark grey on white | #4a5068 on #ffffff | 7.9:1 | Passes | Passes |
| Mid grey on white | #767676 on #ffffff | 4.5:1 | Passes | Passes |
| Light grey on white | #9ca3af on #ffffff | 2.5:1 | Fails | Fails |
| Pale grey on white | #d1d5db on #ffffff | 1.4:1 | Fails | Fails |
| White on blue | #ffffff on #2440d9 | 7.4:1 | Passes | Passes |
| White on yellow | #ffffff on #f5b700 | 1.8:1 | Fails | Fails |
| Gold stars on white | #b07d00 on #ffffff | 3.6:1 | Not text | Passes |
| Yellow stars on white | #f5b700 on #ffffff | 1.8:1 | Not text | Fails |
If you use your brand colour behind the text, check it the same way. White on a mid blue passes; white on yellow does not.
Designs for a testimonial section
A section is a group of cards on a page that has another job. Three arrangements cover most needs:
| Section | What it looks like | Use it when |
|---|---|---|
| A row of three | Three plain or photo cards side by side, one above another on a phone | You have three good testimonials and room for a full-width row |
| One featured, two beside | A featured quote, with two smaller cards next to or under it | One testimonial is stronger than the rest |
| A moving row | Cards in a carousel that visitors move through | You have five or more and little height to spare |
For a page of its own, and for the six layouts with a sketch of each, see how to design a testimonial page and the wall of love guide. The HTML testimonial slider is a moving row in plain HTML and CSS.
Design mistakes that cost trust
| Mistake | Why it hurts | Instead |
|---|---|---|
| A stock photo of a stranger | A visitor who has seen the face elsewhere doubts every card beside it | The customer's own photo, or none |
| No name, or initials only | “J., happy customer” could be anyone, including you | A first name and initial, with a role or town |
| Stars on every card | Stars on a testimonial that came without a rating are made up | Stars only where the customer gave a rating |
| Light grey for the name and role | The part that says who is speaking is the hardest to read | 4.5:1 or more, as in the table above |
| Words laid over a photo | The contrast changes across the photo, and words vanish into it | Words on a plain background |
| Cards that slide on their own | The words move away before they are read | Let visitors move the row, or give it a pause button |
| Every card says “great service” | Ten cards make one point ten times | Cards that each answer a different doubt |
| Words improved before showing | It is no longer what the customer said | Trim and fix typos; ask before changing the meaning |
Design one without code
The builder below makes a testimonial carousel for your own page. Choose a style, add your testimonials, and set the colours to match your site; it gives you one snippet to paste. A carousel publishes on ReTestimonial's free plan with up to 10 testimonials. The carousel page has all its styles, and the other layouts are a click away.
Loading the builder…
Builder not showing? Open it on ReTestimonial
This site earns money when visitors pay for the tools it features; how this site is paid explains.
Questions
What should a testimonial card include?
How long should a testimonial be on a card?
Should testimonials have photos?
What font size should a testimonial be?
For what the words should say, see the testimonial examples and short testimonial examples. To collect more, how to ask a customer for a testimonial has wording you can copy.