Bootstrap 5 Blockquote
The Bootstrap 5 Blockquote component is a styled HTML <blockquote> element used to highlight quoted text from an third-party source, a person, or a document. It pairs with the .blockquote class and an optional .blockquote-footer for attribution. Use it when you need to visually separate a notable quote, testimonial, or cited passage from surrounding body content.
Primary Class
.blockquoteCommon Use Cases
- →Displaying a customer testimonial on a product or service landing page, attributed to a named reviewer with their company or role
- →Citing a statistic or finding from a research report inside a blog post, with the source credited in the footer
- →Highlighting a key quote from an interview or case study to break up long-form content and draw the reader's attention
- →Pulling a standout line from a terms-of-service or legal document to emphasise a critical clause before the full paragraph
Variants & Classes
| Variant | Description |
|---|---|
| Blockquote Default | Standard blockquote with Bootstrap's default styling. |
| Blockquote Responsive | Responsive variant that adapts to different screen sizes. |
Code Example
<figure class="mb-4">
<blockquote class="blockquote">
<p>Switching to a static HTML stack cut our page load time by 60% and eliminated our hosting costs almost entirely.</p>
</blockquote>
<figcaption class="blockquote-footer">
Sarah Okonkwo, <cite title="Meridian Digital Agency">Meridian Digital Agency</cite>
</figcaption>
</figure>Live Examples
Basic Blockquote
Canvas Framework Variants
The Canvas template extends Bootstrap 5 with 1,658+ component variants. Generate any of these using Canvas Builder:
- ✓Canvas Builder generated blockquote with custom colours
- ✓Blockquote with interactive states
- ✓Responsive blockquote for all screen sizes
Best Practices
Wrap in <figure> for semantic correctness
Bootstrap 5's own docs recommend placing <blockquote> inside a <figure> element and using <figcaption class="blockquote-footer"> for attribution — this is semantically correct HTML5 and improves accessibility for screen readers.
Use text alignment utilities to control layout
Add Bootstrap utilities like text-center or text-end directly to the wrapping <figure> to align both the quote and its footer — this avoids writing custom CSS and keeps the component fully responsive.
Adjust font size with fs- utilities
The .blockquote class sets font-size to 1.25rem by default. If that's too large for your layout, override it with a utility like fs-5 or fs-6 on the <blockquote> element without touching any CSS files.
Don't skip the <cite> tag inside the footer
Wrapping the source name inside <cite> within .blockquote-footer is both semantically meaningful and gives you a distinct hook for styling the source separately from the attribution label using CSS or a custom class.