Encodera

Thanks for reading!

Donate to the site — we work hard for you.

HTML & CSS reference

<blockquote>

A long quotation as a separate block.

Syntax

<blockquote cite="url">…</blockquote>

Attributes

ParameterTypeDescription
citeURLOptional. The address of the quote source.

Examples

A quote with the author's name:

<blockquote>
  <p>Simplicity is the ultimate sophistication.</p>
</blockquote>
<p>— <cite>Leonardo da Vinci</cite></p>

Styling a quote:

<style>
  blockquote { margin: 0; padding: 8px 16px; border-left: 4px solid teal; background: #f3fafa; }
</style>
 
<blockquote>Best coffee in town, and the staff are lovely.</blockquote>

Notes

By default <blockquote> is indented on both sides. Put the author's name outside the quote or use <figure> with <figcaption>.

See also

  • <q> — A short inline quote; the browser adds the quotation marks itself.
  • <cite> — The title of a work: a book, film, article or song.
  • <figure> — A self-contained illustration — an image, a diagram, code or a quote — with a `<figcaption>` caption.

In the tutorial

  • Headings and paragraphs — Six levels of headings, paragraphs, spaces and line breaks, the thematic break and quotes in HTML.

Thanks for reading!

Donate to the site — we work hard for you.