Live Preview
A styled blockquote with visible attribution:
“The only limit to our realization of tomorrow is our doubts of today.”

By the end of this tutorial, you’ll confidently mark up block-level quotations with semantic HTML in real-world projects.
Write valid <blockquote> elements for longer quoted passages.
Link to source URLs for machines while keeping visible attribution separate.
Add author names with <footer> and the <cite> element.
Choose block-level quotes for long passages and inline <q> for short phrases.
Style borders, spacing, and typography for polished pull quotes.
Apply accessibility and semantic HTML best practices for quotations.
<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.
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.
Wrap quoted text between opening and closing <blockquote> tags. Put the quote inside a <p> for cleaner structure:
<!-- Basic blockquote syntax -->
<blockquote>
<p>Your quoted text here.</p>
</blockquote><p> elements for proper paragraph structure.cite attribute for a source URL (hidden from readers).<footer> + <cite> for visible author or source attribution.<blockquote cite="https://example.com/source">
<p>Quoted text from that source.</p>
<footer>— <cite>Author Name</cite></footer>
</blockquote>| Use Case | Code Snippet | Result |
|---|---|---|
| Basic quote | <blockquote><p>...</p></blockquote> |
|
| Source URL | <blockquote cite="https://..."> | URL for machines only |
| Visible author | <footer>— <cite>Name</cite></footer> |
|
| Inline quote | <q>short phrase</q> | practice makes perfect |
| Default style | <blockquote>...</blockquote> | Left margin indent |
| Styled pull quote | class="pull-quote" + CSS | Border, background, spacing |
Choose the right quotation element based on length and context:
| Feature | <blockquote> | <q> |
|---|---|---|
| Display | Block-level (own line) | Inline (inside a sentence) |
| Best for | Longer, multi-sentence quotes | Short phrases within text |
| Default styling | Left margin indent | Browser adds quotation marks |
| cite attribute | Yes (URL to source) | Yes (URL to source) |
<!-- 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>The <blockquote> tag has one important tag-specific attribute plus global attributes:
cite OptionalURL pointing to the quotation source. Not displayed on the page—use footer + cite element for visible attribution.
cite="https://example.com/source"class / id GlobalHook for CSS styling. Common pattern: class="pull-quote" or class="testimonial".
<blockquote class="pull-quote">Allowed content FlowParagraphs, headings, lists, and a footer for attribution. Typically one or more p elements.
<p>, <footer>, flow contentfooter + cite A11yVisible author or source name inside blockquote. The inner cite element is for names/titles, not URLs.
<footer>— <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.
Real-world quotation patterns with copy-ready code, live previews, and hands-on practice.
A styled blockquote with visible attribution:
“The only limit to our realization of tomorrow is our doubts of today.”
The simplest form: wrap quoted text in <blockquote>.
<blockquote>
<p>The only limit to our realization of tomorrow is our doubts of today.</p>
</blockquote>Developers use <blockquote> for blog pull quotes, testimonials, literary excerpts, and cited passages in articles.
A standard block-level quotation for well-known text.
<blockquote>
<p>“To be, or not to be, that is the question.”</p>
</blockquote>Link to the original source with the cite attribute. Remember: this URL is for machines, not visible to readers.
<blockquote cite="https://www.archives.gov/exhibits/american_originals_iv/sections/speech_transcript.html">
<p>“The only thing we have to fear is fear itself.”</p>
</blockquote>Show the author or source name on the page using <footer> and the <cite> element.
<blockquote cite="https://en.wikiquote.org/wiki/Albert_Einstein">
<p>“Imagination is more important than knowledge.”</p>
<footer>— <cite>Albert Einstein</cite></footer>
</blockquote>Go beyond the default indent with borders, backgrounds, and typography:
default Left margin indentborder-left Accent barfont-style: italic Quote emphasisblockquote footer Attribution styling/* 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
“The only limit to our realization of tomorrow is our doubts of today.”
Semantic quotations help all users understand your content:
footer with author or source so readers know the origin.Place the passage from another source inside blockquote.
Typically adds left margin/indent so the quote stands apart from body text.
cite URL for machines; footer + cite element for visible source.
Readers and assistive technologies recognize the content as a quote from another source.
The <blockquote> element is supported in all modern browsers and has been part of HTML since early versions.
From legacy Internet Explorer to the latest Chromium builds — the blockquote element is one of the most universally supported semantic HTML tags.
Bottom line: Ship quotation markup with confidence. The <blockquote> element is safe to use in every production environment today.
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.
blockquote for actual quoted passagesp elements for structurefooter + cite for visible attributionblockquote just for indentationcite attribute to show the source on screenblockquote for short inline phrases (use q)<blockquote>Bookmark these before you ship — they’ll make every quotation clear and accessible.
<blockquote> marks longer quotations that stand apart from body text.
Semantic element supported in every browser since early HTML.
StatusThe cite attribute stores a source URL for machines, not readers.
Use footer with a cite element for visible author attribution.
Short phrases inside sentences belong in <q>, not blockquote.
Borders, backgrounds, and typography—not misuse for layout indentation.
Designfooter and cite for visible attribution.blockquote is block-level for longer quotes. q is inline for short phrases inside a sentence.footer inside the blockquote with a cite element for the author or source name.blockquote for actual quotations.Add quotes with proper attribution in the Try It editor.
6 people found this page helpful