Coding Hubs School of AI – Best AI & Full Stack Courses in Delhi NCR | 100% Placement
Limited Offer: Get 50% OFF on AI & Full Stack Courses
📞 Call Now: +91 8448811540
Back to HTML Notes
Topic #216

Blockquote

The <blockquote> element marks an extended quotation from another source, set apart as its own block of content — not just a way to get an indented visual box.

Syntax

<blockquote cite="https://example.com/source">
    <p>Quoted text goes here.</p>
</blockquote>

Basic Example

<blockquote>
    <p>CodingNow's mentors don't just teach syntax — they teach how to think like an engineer.</p>
    <footer>— <cite>Priya, Full Stack Batch 2025</cite></footer>
</blockquote>

Browser output: the quoted paragraph appears indented from the left (and often right) margin by default, with the attribution line right below it.

How It Works

The browser applies a default left/right margin. The <footer><cite>...</cite></footer> pattern inside the blockquote is the spec-recommended way to attribute a quote to its source, without that attribution being mistaken for part of the quote itself.

Important Attributes

AttributePurpose
citeA URL pointing to the source of the quotation — not visually displayed, but useful metadata for browsers and tools

Real-World Example

<blockquote cite="https://html.spec.whatwg.org/">
    <p>The blockquote element represents a section that is quoted from another source.</p>
    <footer>— <cite>WHATWG HTML Living Standard</cite></footer>
</blockquote>

A testimonials section, a pull-quote in an article, or citing a specification passage all use this exact pattern.

Comparison: blockquote vs q

<blockquote><q>
LengthLong, multi-sentence quotationsShort, inline quotations
DisplayBlock-level — starts on its own lineInline — flows within a sentence
Quotation marksNone added automaticallyAdded automatically by the browser

Full breakdown: Quotes (q).

Common Mistakes

  • Using <blockquote> purely to get an indented box for unrelated content — use CSS margin/padding on a <div> instead when there's no actual quotation
  • Leaving out attribution entirely, making it unclear whose words are being quoted

Best Practices

  • Include attribution using the <footer><cite>...</cite></footer> pattern inside the blockquote
  • Use the cite attribute for the source URL when one exists

Accessibility Considerations

Screen readers announce <blockquote> as a distinct region, letting users know the content that follows is quoted material and not the page author's own words.

SEO Considerations

Search engines may treat blockquote content as quoted material rather than fully original site content — worth knowing when planning content strategy, though it's a nuance, not a penalty.

Browser & Modern HTML Notes

Stable across HTML versions; the <footer><cite> attribution pattern is an HTML5-era convention rather than a strict requirement.

Mini Practice

  1. Add a customer testimonial using <blockquote> with proper attribution.
  2. Quote a passage from a specification or article, including the cite attribute.

Related HTML Notes

Want to go beyond the notes?

Join Coding Hubs School of AI's HTML course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available
💬 Talk to Advisor
1
WhatsApp

Latest from Our Blog

Insights on AI, Data Science, Full Stack & Career

View All Articles →