HTML Quotations

HTML Living Standard

Mark quoted text with <q> for an inline quotation or <blockquote> for a separate passage.

On this page

HTML Quotations with <q> and <blockquote>

Use q for a short quotation within a sentence. Browsers typically add quotation marks for q. Use blockquote when the quoted passage stands on its own. The cite attribute can hold a source URL. For a visible source, also add a normal link or text.

How to try it Save this example as a new .html file, then open it in your browser. After a change, save and reload.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>HTML Quotations with &lt;q&gt; and &lt;blockquote&gt;</title>
</head>
<body>
<p>The sign says <q>Open daily</q>.</p>
<blockquote cite="https://example.com/reviews">
  <p>The service was quick and the staff was friendly.</p>
</blockquote>
<p>Source: Example store review</p>
</body>
</html>

What to expect Open daily appears in quotation marks. The longer quote sits on a separate line as its own block.

Official references