The cite attribute holds a URL that points to the source of a quotation on <blockquote> or <q>, or to a document that explains a change on <del> / <ins>.
It is not the same as the <cite> element (title of a work). Put visible credit outside a <blockquote>. Pair edits with datetime when you record when the change happened.
Baseline · Widely available.
Not deprecated. Supported on quote and edit elements across modern browsers since about July 2015.
Not shown by default.
Browsers and screen readers rarely surface the cite URL. Add a visible link or attribution in the page text so humans can follow the source.
Syntax
HTML Syntax
syntax.html
<blockquote|q|del|ins cite="URL"> … </…>
Value must be a valid URL (absolute or relative). Spaces around it are allowed by the parser.
Values
Attribute Values
What cite points to, by element:
Element
Description
Try it
<blockquote>
URL of the source document or message for a long quote
Change the cite URL on a sample quote. The attribute updates; the visible line still shows human-readable credit.
Inspect the attribute in DevTools — browsers do not print the URL next to the quote by default.
Quote
Words can be like X-rays, if you use them properly—they'll go through anything.
—Aldous Huxley, Brave New World
Code
HTML Examples
Short, copy-ready snippets. Use Try It Yourself for a live editor.
Example 1 — Block Quote with Source URL
Machine-readable cite plus visible attribution outside the quote.
HTML
<blockquote cite="https://www.huxley.net/bnw/four.html">
<p>
Words can be like X-rays, if you use them properly—they'll go through
anything. You read and you're pierced.
</p>
</blockquote>
<p>—Aldous Huxley, <cite>Brave New World</cite></p>
Words can be like X-rays, if you use them properly—they'll go through anything. You read and you're pierced.
—Aldous Huxley, Brave New World
How It Works
blockquote marks a long quotation.
cite="…" stores the source URL for tools and metadata.
Credit stays outside the blockquote (author + work title).
<cite> wraps the work title — different from the attribute.
Example 2 — Short Inline Quote
Use <q> for brief quotes; browsers usually add quotation marks.
HTML
<p>
According to Mozilla's website,
<q cite="https://www.mozilla.org/en-US/about/history/details/">
Firefox 1.0 was released in 2004 and became a big success.
</q>
</p>