HTML

HTML Blockquote: Syntax, Usage, and Examples

The HTML blockquote element is used to indicate a section of text that comes from an external source. It visually separates quoted content from the rest of your page and helps readers and search engines recognize the difference between your original content and material you've cited. Whether you’re quoting an article, a speech, or a review, using the HTML blockquote tag brings structure, meaning, and clarity to your markup.

How to Add Blockquote in HTML

The basic syntax of the blockquote HTML element is simple. You wrap the quoted content inside <blockquote> and </blockquote> tags:

<blockquote>
  The journey of a thousand miles begins with a single step.
</blockquote>

By default, browsers usually indent the content within a <blockquote> tag to show that it’s a quotation. You can also use the cite attribute to point to the source of the quote, which improves semantic value:

<blockquote cite="https://example.com/quote-source">
  The only limit to our realization of tomorrow is our doubts of today.
</blockquote>

The cite attribute won’t create a visible link but provides source information for search engines and assistive technologies.

When to Use the Blockquote Tag in HTML

Use the HTML blockquote tag when you're quoting material from an external source or marking a longer quotation within your own content. It helps readers distinguish between your original thoughts and referenced content.

Quoting Articles or Books

If you’re referencing a publication or excerpt, wrap the quote in a <blockquote>:

<blockquote>
  It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness...
</blockquote>

This provides clarity and structure when quoting full sentences or paragraphs.

Quoting Customer Testimonials

The blockquote element HTML is often used to highlight customer reviews or praise:

<blockquote>
  This product changed the way I manage my business. I can't recommend it enough!
</blockquote>

This helps give testimonials more visual weight and emphasis.

Citing External Opinions

When discussing expert opinions or viewpoints from other sources, you can use the blockquote tag in HTML to clearly separate those from your commentary:

<blockquote cite="https://www.technologyreview.com/ai-ethics">
  AI must be regulated to protect human rights and privacy on a global scale.
</blockquote>

This helps readers recognize the source and authenticity of quoted material.

Examples of Blockquote HTML in Action

Basic Blockquote

<blockquote>
  The greatest glory in living lies not in never falling, but in rising every time we fall.
</blockquote>

This is a standard way to present a quote with no attribution or styling.

Blockquote with Citation

<blockquote cite="https://www.whitehouse.gov/briefing-room/speeches">
  We are the change that we seek.
</blockquote>

While the cite attribute doesn’t display on the page, it improves semantic richness and can be read by screen readers or search engine crawlers.

Blockquote Inside an Article

<article>
  <h2>Leadership Lessons from Mandela</h2>
  <p>Here’s a quote that captures Mandela’s philosophy:</p>
  <blockquote>
    It always seems impossible until it's done.
  </blockquote>
</article>

This structure clearly separates the author’s voice from the cited statement.

Blockquote with a Visible Source Line

To make the source visible to users, include it inside the blockquote or immediately below:

<blockquote>
  Success is not final, failure is not fatal: it is the courage to continue that counts.
  <footer>— Winston Churchill</footer>
</blockquote>

You can use the <footer> tag to credit the author or source in a stylistically consistent way.

Learn More About Blockquote in HTML

Semantic Value of Blockquote

The blockquote HTML element is more than just a way to make text look different. It has meaning. By using it, you're telling browsers and assistive technologies that the enclosed content is a quotation. This makes it easier for screen readers to interpret the structure and for search engines to understand content relationships.

Using blockquotes instead of styling normal paragraphs also gives you more flexibility for future updates and ensures your HTML stays semantic and accessible.

Styling Blockquotes with CSS

Browsers apply default indentation and spacing to blockquotes, but you can customize them using CSS.

<style>
  blockquote {
    border-left: 4px solid #ccc;
    padding-left: 15px;
    font-style: italic;
    color: #555;
    margin: 20px 0;
  }
</style>

This style creates a left border and italic text, giving blockquotes a more polished appearance.

HTML Blockquote vs <q> Element

The <blockquote> tag is used for longer quotations that usually span multiple lines or paragraphs. For short inline quotes, use the <q> tag instead:

<p>She always said, <q>be kind whenever possible.</q></p>

Browsers automatically add quotation marks around <q> content, while <blockquote> is used to separate larger blocks of quoted material.

Nested Blockquotes

If you're quoting something that already contains a quote, you can nest blockquotes:

<blockquote>
  He wrote:
  <blockquote>
    I have a dream that one day this nation will rise up...
  </blockquote>
  and continued with his speech.
</blockquote>

Be sure to use this sparingly, as too much nesting can become difficult to read or style effectively.

Accessibility Tips

Here are a few guidelines to make your use of the blockquote element HTML more accessible:

  • Use the cite attribute when you know the original source.
  • Avoid using blockquotes purely for visual styling—use CSS for design and blockquote for meaning.
  • When including the author or source in the text, consider using a <footer> or <cite> element:

<blockquote>
  Be yourself; everyone else is already taken.
  <footer><cite>Oscar Wilde</cite></footer>
</blockquote>

This improves screen reader interpretation and makes your HTML more meaningful.

Customizing the Look of Blockquotes

You can style blockquotes to fit your website's brand or layout, from minimalist to decorative:

blockquote {
  background: #f9f9f9;
  border-left: 8px solid #4caf50;
  padding: 15px 20px;
  font-family: Georgia, serif;
}

This makes the quote pop without relying on italics alone.

Blockquote HTML Example in Layouts

Blockquotes often appear in content-rich pages like:

  • Blog posts: For citing external thoughts or references.
  • Product testimonials: Highlighting what customers are saying.
  • Landing pages: Featuring standout quotes from reviews.
  • Documentation: Showing code philosophies or user feedback.

You can even animate or highlight blockquotes using JavaScript if you want them to appear interactively on scroll.

Using the blockquote HTML tag adds structure, clarity, and meaning to your content. Whether you're quoting literature, citing sources, or showcasing testimonials, the blockquote tag in HTML helps readers—and technologies—understand your intent. With a little CSS styling and thoughtful usage, you can make your quoted content stand out and fit seamlessly into your layout. Now that you know how to add blockquote in HTML, you can elevate the way you present and credit ideas across your website.

Learn HTML for Free
Start learning now
button icon
To advance beyond this tutorial and learn HTML by doing, try the interactive experience of Mimo. Whether you're starting from scratch or brushing up your coding skills, Mimo helps you take your coding journey above and beyond.

Sign up or download Mimo from the App Store or Google Play to enhance your programming skills and prepare for a career in tech.

You can code, too.

© 2025 Mimo GmbH