HTML cite Attribute

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

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.

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.

Attribute Values

What cite points to, by element:

ElementDescriptionTry it
<blockquote>URL of the source document or message for a long quoteTry it
<q>URL for a short inline quotationTry it
<del> / <ins>URL of a document that explains the edit (minutes, ticket, changelog)Try it
vs <cite>Element = visible work title; attribute = machine-readable URLTry it

Live Preview

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

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>
Try It Yourself

How It Works

  1. blockquote marks a long quotation.
  2. cite="…" stores the source URL for tools and metadata.
  3. Credit stays outside the blockquote (author + work title).
  4. <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>
Try It Yourself

How It Works

  1. q is for short quotes without paragraph breaks.
  2. cite again holds the source URL.
  3. Default styling often adds quote marks around the text.
  4. Link the source in prose if readers need a clickable reference.

Example 3 — Cite an Edit (del / ins)

Point to a changelog or ticket that explains why text changed.

HTML
<p>
  Contact:
  <del cite="/changelog#support-email" datetime="2024-03-01">[email protected]</del>
  <ins cite="/changelog#support-email" datetime="2024-03-01">[email protected]</ins>
</p>
Try It Yourself

How It Works

  1. del / ins mark removed and added text.
  2. cite links to minutes, a ticket, or a changelog section (fragments help).
  3. datetime records when the edit happened.
  4. Still mainly for tools — show a human-readable note if readers need it.

Edge Cases & Pitfalls

Most mistakes mix up the attribute with the element, or hide the only source URL from readers.

visibility

Attribute alone is not enough for readers

Add a visible link or attribution. Do not rely on browsers to show cite.

blockquote

Credit goes outside the quote

Author and work title must not live inside <blockquote> per the HTML spec.

names

Attribute ≠ <cite> element

Attribute = URL. Element = title of a work in visible text. You often use both together.

URL

Use a real URL

Relative or absolute is fine. For long change logs, a fragment (#section) helps point at the right part.

JS

Read it with .cite

On quote and mod elements, the IDL property cite reflects the attribute (resolved URL).

Browser Support

cite is an HTML attribute on quote and edit elements. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

cite

Widely available on blockquote, q, del, and ins. Parsing and storage are reliable; visual display of the URL is not automatic.

97% Global support (approx.)
Google Chrome All modern
Full support
Mozilla Firefox All modern
Full support
Apple Safari All modern
Full support
Microsoft Edge All modern
Full support
Opera All modern
Full support
Samsung Internet Modern
Full support
Internet Explorer All
Supported
cite Widely supported

Bottom line: Safe to use for semantic source URLs. Always provide a visible citation for people reading the page.

Key Takeaways

  • Role: URL of a quote’s source or an edit’s explanation.
  • Elements: blockquote, q, del, ins.
  • Visible credit: still required — browsers hide the attribute.
  • ≠ <cite>: element = work title; attribute = URL.

One line: cite stores a source URL — always show human-readable attribution too.

Frequently Asked Questions

It holds a URL that points to the source of a quotation (on blockquote or q) or to a document that explains an edit (on del or ins).
blockquote, q, del, and ins. It is not the same as the cite element, which marks the title of a work.
Usually not. The attribute is mainly machine-readable. Show a visible source with a link, text attribution, or the cite element outside the quote.
Outside the blockquote. The HTML spec says credit or authorship for the quote must not be inside the blockquote element.
The attribute is a URL on quote or edit elements. The cite element wraps the title of a creative work (book, article, song) in visible text.
No. It is Baseline widely available on blockquote, q, del, and ins.

Next: class

Assign CSS and script hooks with space-separated class names.

class tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful