HTML <blockquote> Tag

Beginner
⏱️ 6 min read
📚 Updated: Jun 2026
🎯 4 Examples
Text & Semantics

What You’ll Learn

By the end of this tutorial, you’ll confidently mark up block-level quotations with semantic HTML in real-world projects.

01

Core Syntax

Write valid <blockquote> elements for longer quoted passages.

02

cite Attribute

Link to source URLs for machines while keeping visible attribution separate.

03

Visible Attribution

Add author names with <footer> and the <cite> element.

04

blockquote vs q

Choose block-level quotes for long passages and inline <q> for short phrases.

05

CSS Styling

Style borders, spacing, and typography for polished pull quotes.

06

Production Tips

Apply accessibility and semantic HTML best practices for quotations.

What Is the <blockquote> Tag?

The blockquote element (<blockquote>) represents a section that is quoted from another source. It is a block-level semantic HTML5 element that helps readers and assistive technologies recognize quoted content.

💡
Quotations only—not indentation

Use <blockquote> for actual quoted passages from another source. Do not use it merely to indent text—use CSS margins and padding for layout instead.

Browsers typically indent blockquotes with a left margin by default. Common uses include blog pull quotes, testimonials, literary excerpts, and cited passages in articles.

📝 Syntax

Wrap quoted text between opening and closing <blockquote> tags. Put the quote inside a <p> for cleaner structure:

syntax.html
<!-- Basic blockquote syntax -->
<blockquote>
  <p>Your quoted text here.</p>
</blockquote>

Syntax Rules

  • Wrap longer, standalone quotations that deserve their own block.
  • Place quote text inside <p> elements for proper paragraph structure.
  • Use the cite attribute for a source URL (hidden from readers).
  • Add <footer> + <cite> for visible author or source attribution.
attribution-example.html
<blockquote cite="https://example.com/source">
  <p>Quoted text from that source.</p>
  <footer>&mdash; <cite>Author Name</cite></footer>
</blockquote>

⚡ Quick Reference

Use CaseCode SnippetResult
Basic quote<blockquote><p>...</p></blockquote>

A journey of a thousand miles begins with a single step.

Source URL<blockquote cite="https://...">URL for machines only
Visible author<footer>&mdash; <cite>Name</cite></footer>

“Imagination is more important than knowledge.”

Albert Einstein
Inline quote<q>short phrase</q>practice makes perfect
Default style<blockquote>...</blockquote>Left margin indent
Styled pull quoteclass="pull-quote" + CSSBorder, background, spacing

⚖️ <blockquote> vs <q>

Choose the right quotation element based on length and context:

Feature<blockquote><q>
DisplayBlock-level (own line)Inline (inside a sentence)
Best forLonger, multi-sentence quotesShort phrases within text
Default stylingLeft margin indentBrowser adds quotation marks
cite attributeYes (URL to source)Yes (URL to source)
blockquote-vs-q.html
<!-- Block-level: longer quote -->
<blockquote><p>A journey of a thousand miles begins with a single step.</p></blockquote>

<!-- Inline: short quote inside text -->
<p>As the saying goes, <q>practice makes perfect</q>.</p>

🧰 Attributes

The <blockquote> tag has one important tag-specific attribute plus global attributes:

cite Optional

URL pointing to the quotation source. Not displayed on the page—use footer + cite element for visible attribution.

cite="https://example.com/source"
class / id Global

Hook for CSS styling. Common pattern: class="pull-quote" or class="testimonial".

<blockquote class="pull-quote">
Allowed content Flow

Paragraphs, headings, lists, and a footer for attribution. Typically one or more p elements.

<p>, <footer>, flow content
footer + cite A11y

Visible author or source name inside blockquote. The inner cite element is for names/titles, not URLs.

<footer>&mdash; <cite>Author</cite></footer>

The cite attribute on blockquote holds a URL for machines. For visible attribution, always add a footer with a cite element inside the blockquote.

Examples Gallery

Real-world quotation patterns with copy-ready code, live previews, and hands-on practice.

Live Preview

A styled blockquote with visible attribution:

“The only limit to our realization of tomorrow is our doubts of today.”

Franklin D. Roosevelt

Basic Block Quotation

The simplest form: wrap quoted text in <blockquote>.

basic-blockquote.html
<blockquote>
  <p>The only limit to our realization of tomorrow is our doubts of today.</p>
</blockquote>
Try It Yourself

📚 Common Use Cases

Developers use <blockquote> for blog pull quotes, testimonials, literary excerpts, and cited passages in articles.

Famous Literary Quote

A standard block-level quotation for well-known text.

famous-quote.html
<blockquote>
  <p>&ldquo;To be, or not to be, that is the question.&rdquo;</p>
</blockquote>
Try It Yourself

Source URL with cite Attribute

Link to the original source with the cite attribute. Remember: this URL is for machines, not visible to readers.

cite-attribute.html
<blockquote cite="https://www.archives.gov/exhibits/american_originals_iv/sections/speech_transcript.html">
  <p>&ldquo;The only thing we have to fear is fear itself.&rdquo;</p>
</blockquote>
Try It Yourself

Visible Attribution with footer

Show the author or source name on the page using <footer> and the <cite> element.

attribution.html
<blockquote cite="https://en.wikiquote.org/wiki/Albert_Einstein">
  <p>&ldquo;Imagination is more important than knowledge.&rdquo;</p>
  <footer>&mdash; <cite>Albert Einstein</cite></footer>
</blockquote>
Try It Yourself

Styling <blockquote> with CSS

Go beyond the default indent with borders, backgrounds, and typography:

default Left margin indent
border-left Accent bar
font-style: italic Quote emphasis
blockquote footer Attribution styling
blockquote-styles.css
/* Pull quote style */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  border-radius: 0 6px 6px 0;
}

/* Quote text */
blockquote p {
  font-style: italic;
  color: #1e3a8a;
}

/* Visible attribution */
blockquote footer {
  font-size: 0.8125rem;
  color: #64748b;
}

Live styled pull quote

♿ Accessibility

Semantic quotations help all users understand your content:

  • Use for real quotes — only mark actual quotations, not indented decoration.
  • Provide attribution — add a footer with author or source so readers know the origin.
  • Screen readers — announce blockquote as a quotation landmark.
  • Don’t rely on styling alone — CSS borders do not convey “quote” meaning to assistive tech.

🧠 How <blockquote> Works

1

Author wraps quoted text

Place the passage from another source inside blockquote.

Markup
2

Browser applies default styles

Typically adds left margin/indent so the quote stands apart from body text.

Rendering
3

Optional cite and footer

cite URL for machines; footer + cite element for visible source.

Attribution
=

Clear, semantic quotation

Readers and assistive technologies recognize the content as a quote from another source.

Universal Browser Support

The <blockquote> element is supported in all modern browsers and has been part of HTML since early versions.

Baseline · Since HTML 2

Works everywhere your users are

From legacy Internet Explorer to the latest Chromium builds — the blockquote element is one of the most universally supported semantic HTML tags.

100% Core tag support
Google Chrome All versions · Desktop & Mobile
Full support
Mozilla Firefox All versions · Desktop & Mobile
Full support
Apple Safari All versions · macOS & iOS
Full support
Microsoft Edge All versions · Chromium & Legacy
Full support
Internet Explorer IE 6+ · Legacy environments
Full support
Opera All modern versions
Full support
<blockquote> tag 100% supported

Bottom line: Ship quotation markup with confidence. The <blockquote> element is safe to use in every production environment today.

Conclusion

The <blockquote> tag is the right choice for longer quotations in HTML5. Pair it with the cite attribute for source URLs and a footer for visible attribution.

Style it with CSS for a polished, readable presentation—and reserve the element for actual quoted passages, not layout indentation.

💡 Best Practices

✅ Do

  • Use blockquote for actual quoted passages
  • Wrap quote text in p elements for structure
  • Add footer + cite for visible attribution
  • Style with CSS borders, spacing, and typography

❌ Don’t

  • Use blockquote just for indentation
  • Expect the cite attribute to show the source on screen
  • Use blockquote for short inline phrases (use q)
  • Forget to credit the original author or source

Key Takeaways

Knowledge Unlocked

Six truths every developer should know about <blockquote>

Bookmark these before you ship — they’ll make every quotation clear and accessible.

6
Core concepts
02

Valid HTML5

Semantic element supported in every browser since early HTML.

Status
🔗 03

cite = Hidden URL

The cite attribute stores a source URL for machines, not readers.

Reference
📝 04

footer + cite Element

Use footer with a cite element for visible author attribution.

Pattern
📝 05

Use q for Inline

Short phrases inside sentences belong in <q>, not blockquote.

Comparison
🎨 06

Style with CSS

Borders, backgrounds, and typography—not misuse for layout indentation.

Design

❓ Frequently Asked Questions

It marks a section quoted from another source. Browsers indent it by default and assistive technologies recognize it as a quotation.
It holds a URL to the quotation source. The URL is not displayed on the page—use footer and cite for visible attribution.
blockquote is block-level for longer quotes. q is inline for short phrases inside a sentence.
Add a footer inside the blockquote with a cite element for the author or source name.
No. Use CSS margins and padding for layout. Reserve blockquote for actual quotations.

Practice Block Quotations

Add quotes with proper attribution in the Try It editor.

Try blockquote →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

6 people found this page helpful