Back to HTML

Quotations in HTML: blockquote, q and cite

Coding Tutorials Team 16 July 2026

Quoting other people is common enough on the web that HTML provides three elements for it. Two are straightforward. The third is misused so consistently that the incorrect usage is more widespread than the correct one.

Block quotations

The blockquote element marks a quotation that stands as its own block, separated from the surrounding text.

<blockquote> <p>The web is fundamentally designed to work for all people.</p> </blockquote>

It is a block level element and its content should be block level too, which means the quoted text goes inside a paragraph rather than directly inside the quote. Browsers indent it by default, and that indentation is the source of the most common abuse of the element.

It is not an indentation tool

Because it indents, blockquote gets used to push any block of text inwards. This tells every screen reader and every parser that the content is a quotation from another source, which is simply false. Indentation is a margin, and a margin is one line of CSS applied to whichever element is actually correct.

Inline quotations

The q element marks a short quotation within a sentence.

<p>She described it as <q>the smallest useful change</q> and moved on.</p>

The browser inserts the quotation marks automatically, which is the detail people miss. Typing your own inside a q element produces doubled marks. The generated marks also follow the language declared on the page, so a French section receives the correct style for that language without any further work.

Many developers avoid it and type quotation marks directly, which is defensible for ordinary prose. Where it earns its place is on multilingual sites, where automatic and correct punctuation per language is genuinely valuable.

The cite attribute

Both blockquote and q accept a cite attribute holding the address of the source document.

<blockquote cite="https://example.com/article/"> <p>Quoted text.</p> </blockquote>

The catch is that browsers do not display it. It is machine readable metadata, useful to tooling and to anyone inspecting the page, and invisible to an ordinary reader. If you want the source visible, and you usually should, it needs to be in the content as well.

The cite element does not mean the author

Here is the part that is widely got wrong. The cite element refers to the title of a work, not to the person who created it. A book title, an article name, a film, a piece of software. Wrapping a person's name in it is incorrect, and this was clarified specifically because the earlier wording was ambiguous.

<p>As argued in <cite>Designing for the Web</cite>, structure comes first.</p>

Browsers render it in italics, which is consistent with the typographic convention for titles of works. If you need to mark up a person, there is no dedicated element and a span with a class is the honest answer.

Attributing a quotation properly

The attribution should not go inside the blockquote, because it is not part of what was said. The recommended pattern wraps both in a figure.

<figure> <blockquote> <p>Quoted text goes here.</p> </blockquote> <figcaption> A. Author, <cite>Title of the Work</cite> </figcaption> </figure>

This keeps the quotation and its attribution associated while making clear which is which. The caption names the person plainly and reserves the cite element for the title, which is exactly the distinction described above.

Styling quotation marks

Large decorative quotation marks are a common design feature, and the right way to add them is generated content in CSS rather than characters in your markup. A decorative mark placed in the HTML gets read out by screen readers as a stray punctuation character, whereas generated content is usually skipped.

The quotes property also lets you define which characters the q element generates, per language, if the browser defaults do not suit the design.

Quoting without a blockquote

Not every quotation needs an element. A sentence quoted inside running prose with ordinary quotation marks is perfectly good markup, and reaching for a q element every time adds complexity without adding much. The block element earns its place when the quotation is set apart as its own passage, and the inline one earns its place mainly on multilingual sites.

Where the source is another page on the web, linking to it inside the attribution is more valuable than the cite attribute, because a link is visible, clickable and followed by crawlers, whereas the attribute is none of those things.

Pull quotes are a different thing

A pull quote repeats a striking sentence from the article itself in larger type. It is not a quotation from another source, so blockquote is the wrong element. It is also duplicated content, which means a screen reader will announce the same sentence twice.

The usual approach is an aside containing the repeated text, hidden from assistive technology with an aria attribute since the reader will encounter the original in place. That gives sighted readers the visual emphasis without making anyone else listen to it twice.