0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
A machine-readable source URL for quotations and edits on blockquote, q, del and ins. Browsers never show it, so pair it with visible attribution.
Overview
The citeattribute gives the URL of the source a quotation came from, or of a document explaining an edit. Browsers do not display it and do not make it a link. It is there for tools that process the markup: scrapers, search engines, reading-mode and citation tools, and your own scripts.
This page is about the citeattribute. The <cite> element is different: it marks up the visible title of a work.
<del> and <ins> — a document explaining the change.
Quote with visible attribution
123456
<figureclass="quote"><blockquotecite="https://html.spec.whatwg.org/multipage/grouping-content.html#the-blockquote-element"><p>The blockquote element represents a section that is quoted from another source.</p></blockquote><figcaption><cite><ahref="https://html.spec.whatwg.org/multipage/grouping-content.html#the-blockquote-element">HTML Living Standard</a></cite>, section 4.4.4</figcaption></figure>
Values
Element
Value
Points to
<blockquote>, <q>
A valid URL
The source of the quoted text
<del>, <ins>
A valid URL
A changelog entry, ticket or document explaining the change
Absent (the default)
No source recorded
Relative URLs resolve against the document. The DOM properties (blockquote.cite, q.cite, del.cite, ins.cite) return the resolved absolute URL.
Examples
Inline quotation
<q> takes cite just like <blockquote>. Do not type quotation marks around it; the browser adds them.
q with cite
1234
<p>The spec is blunt about inline quotes:<qcite="https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-q-element">Quotation punctuation (such as quotation marks) that is quoting the contents of the element must not appear immediately before, after, or inside q elements</q>.</p>
Recording why an edit was made
On <del> and <ins>, pair cite with datetime for a full edit record.
Edit with a source
1234
<p>Support hours are<delcite="https://example.com/changelog#support-hours"datetime="2026-10-01">9 AM to 5 PM</del><inscite="https://example.com/changelog#support-hours"datetime="2026-10-01">8 AM to 6 PM</ins>, Monday to Friday.</p>
VB does not style or read the citeattribute. It styles the visible attribution that should go with it:
figure.quote (src/native-elements/figure/styles.css) is the preferred pattern. The <figcaption> sits outside the quotation, as the spec requires, and gets a "— " prefix that screen readers skip (content: "— " / "").
blockquote > footer and blockquote > cite (direct children only) get the same dash prefix (src/native-elements/blockquote/styles.css). This is kept for existing content; prefer figure.quote.
<q> gets locale-correct quotation marks from :lang() rules in src/native-elements/i18n/styles.css (“…” in English, „…“ in German, « … » in French).
<del> / <ins> accept VB's data-author, data-reason and data-announce annotations (src/native-elements/inline-semantics/styles.css); see the <del> page.
Untrusted HTML. VB's HTML sanitizer (src/lib/sanitize-html.js) and <card-list> field binding treat cite as a URL attribute and check its scheme, so a javascript: value is dropped.
Accessibility
Screen readers do not announce the citeattribute, and browsers do not expose it. It does nothing for readers on its own.
Always give visible attribution: a <figcaption> with the author, the work in <cite>, and a real link if the source is online.
Gotchas
No browser renders the URL, and users cannot reach it without viewing the source.
Browsers do not validate it. A typo goes unnoticed; an HTML validator will catch an invalid URL.
Attribution belongs outside the <blockquote>. A <footer> inside it makes the attribution part of the quotation.
Check quotes before you publish. Many popular quotations are misattributed; if you cannot find the original source, say "attributed to".