HTML Reference ยท Text Content
The <blockquote> element
Reference for the HTML <blockquote> element: quoting longer passages, the cite attribute, attributing the source, accessibility notes and technical details.
The <blockquote> element holds a quotation that stands on its own as a block: a paragraph from a book, a few lines of a speech, a customer review, a post you are replying to. The content inside is the quoted material itself; who said it belongs outside the element.
Browsers indent a blockquote on both sides by default. For short quotes inside a sentence, use the inline <q> element instead.
<blockquote cite="https://example.com/field-notes"> <p>The river was louder at night, as if it had been saving its voice.</p> </blockquote>
Try it
Wrapping the quote and its caption in a <figure> ties the attribution to the quotation without putting it inside the quoted text.
Attributes
| Attribute | Values | Description |
|---|---|---|
cite |
A valid URL | Address of the source document or a page with more information about the quote. Browsers do not display it; scripts and tools can read it. |
It also accepts the global attributes.
Usage notes
- Only the quote goes inside. Keep the author's name, book title or link outside the
<blockquote>, for example in a<figcaption>or a paragraph after it. citeis invisible. If readers should see the source, add a visible link or a<cite>element as well.- Not for indentation. Don't use
<blockquote>just to push text to the right; use CSSmarginorpaddingon a meaningful element. - Block content inside. A blockquote can contain paragraphs, lists, headings and other flow content. Wrap prose in
<p>elements so the quoted paragraphs keep their structure. - Accessibility. Screen readers can announce the start and end of a quotation, which helps listeners tell quoted words from your own.
Technical summary
| Content categories | Flow content, palpable content |
| Permitted content | Flow content |
| Tag omission | None; both the start and end tags are required |
| Permitted parents | Any element that accepts flow content |
| Implicit ARIA role | blockquote |
| DOM interface | HTMLQuoteElement |
| Default display | block (with left and right margins of about 40px) |
Browser support
Supported in every browser.
Related
<q>โ short inline quotations<cite>โ the title of a work<figure>and<figcaption>โ pairing a quote with its attribution- Lesson: Quotations, Citations and Abbreviations
- Lesson: Figures and Captions