Skip to content
Testimonial Widget
Menu

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

A sample card written for this guide. Each number marks one part:
  1. The customer's words. Every card.
  2. One line that stands out. When the words run long.
  3. Their name. Every card.
  4. Their role, company or town. Every card.
  5. Their photo. When they agreed to one.
  6. Their star rating. Only when they gave one.
  7. 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.

What each part does, and what research says about it
PartWhat it doesWhat research says
The wordsCarry the point. A detail beats an adjectiveThe 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 townSay who is speaking, so it cannot be you35% 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).
PhotoShows a real personUsers 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 ratingA score at a glanceThe 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).
DateShows it is current44% count a review posted in the last month as one that matters (BrightLocal, 2026).
Most of this research is on reviews, the testimonial's closest relative; the findings on believing a claim apply to both.

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:

What makes a review countBrightLocal, 2026: 1,002 US adults, about local businesses. The share who chose each as something that makes a review matter to them.
Show the numbers as a table
What makes a review count
What makes a review countShare of consumers, %
Other reviews say the same56
It describes a good experience46
It was posted in the last month44
It has a high star rating42
The owner replied to it37
It has a good photo or video36
The reviewer is named35
It is long and detailed26

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.

Which design for which place
DesignUse it forWords it suits
1. Plain cardAny page; a row of threeOne to three sentences
2. With a photoServices sold by people: coaching, trades, agenciesOne to three sentences
3. With a star ratingTestimonials that came with a ratingOne to three sentences
4. With a headlineLong testimonials, so a skimmer still gets the pointA paragraph
5. Featured quoteThe top of the home page, or one per pageOne sentence
6. Leads with a resultA number the customer gave you: time, money, salesTwo or three sentences with a figure
7. One lineBeside a button, under a price, at checkoutUnder ten words
8. Before and afterA change the customer can describe in two halvesTwo 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.

Sizes and rules for a testimonial card
RuleThe numberWhere it comes from
Line length50 to 75 characters a line: a card about 26rem wide at 17pxBaymard Institute, 2022
Text size16 to 19px for the words; the name and role a step smallerBritish Dyslexia Association, 2023
Text contrast4.5:1, or 3:1 for large text (about 24px, or 18.5px bold)WCAG 1.4.3, level AA
Stars, arrows and dots3:1 against the colour beside themWCAG 1.4.11, level AA
Buttons and dotsAt least 24 by 24 pixels, or spaced so they do not crowd each otherWCAG 2.5.8, level AA
Cards that move by themselvesA way to pause or stop them, if they move for more than 5 secondsWCAG 2.2.2, level A
Narrow screensEach card fits in 320 pixels without scrolling sidewaysWCAG 1.4.10, level AA
HeightNo fixed height: the words must not be cut off when a visitor spaces them outWCAG 1.4.12, level AA
ItalicsA few words at most; longer quotes uprightButterick's Practical Typography
Photo descriptionEmpty, when the name beside the photo says who it isW3C images tutorial
WCAG 2.2 is the W3C's accessibility standard. Level A is the minimum and AA the usual target.

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.

Contrast of common card colours
ColoursHow it looksRatioText (needs 4.5:1)Large text and stars (need 3:1)
Near-black on white#1b2033 on #ffffff16.1:1PassesPasses
Dark grey on white#4a5068 on #ffffff7.9:1PassesPasses
Mid grey on white#767676 on #ffffff4.5:1PassesPasses
Light grey on white#9ca3af on #ffffff2.5:1FailsFails
Pale grey on white#d1d5db on #ffffff1.4:1FailsFails
White on blue#ffffff on #2440d97.4:1PassesPasses
White on yellow#ffffff on #f5b7001.8:1FailsFails
Gold stars on white#b07d00 on #ffffff3.6:1Not textPasses
Yellow stars on white#f5b700 on #ffffff1.8:1Not textFails
Ratios worked out with the formula in WCAG 2.2, from the colours shown. Text needs 4.5:1 to meet level AA. Large text, from about 24px (or 19px in bold), and graphics such as stars need 3:1.

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:

Three section designs
SectionWhat it looks likeUse it when
A row of threeThree plain or photo cards side by side, one above another on a phoneYou have three good testimonials and room for a full-width row
One featured, two besideA featured quote, with two smaller cards next to or under itOne testimonial is stronger than the rest
A moving rowCards in a carousel that visitors move throughYou 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

Mistakes, and what to do instead
MistakeWhy it hurtsInstead
A stock photo of a strangerA visitor who has seen the face elsewhere doubts every card beside itThe customer's own photo, or none
No name, or initials only“J., happy customer” could be anyone, including youA first name and initial, with a role or town
Stars on every cardStars on a testimonial that came without a rating are made upStars only where the customer gave a rating
Light grey for the name and roleThe part that says who is speaking is the hardest to read4.5:1 or more, as in the table above
Words laid over a photoThe contrast changes across the photo, and words vanish into itWords on a plain background
Cards that slide on their ownThe words move away before they are readLet visitors move the row, or give it a pause button
Every card says “great service”Ten cards make one point ten timesCards that each answer a different doubt
Words improved before showingIt is no longer what the customer saidTrim 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?
The customer's words, their name, and their role, company or town. Add a photo if they agreed to one, stars if they gave a rating, and a date while it is recent.
How long should a testimonial be on a card?
One to three sentences for a card in a row. Longer ones fit a card with a headline, or a page of their own. How to write a testimonial has a chart of lengths for each place.
Should testimonials have photos?
When the customer sends one or agrees to one, yes. Never use a stock photo of a stranger: a visitor who recognises it will doubt every card beside it.
What font size should a testimonial be?
As large as your body text, or larger: about 16 to 18 pixels on a card, and larger for a featured quote. The name and role can be a step smaller, as long as they keep their contrast.

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.