cite (HTML attribute)

Spec
Depr. Version
No HTML 4
Browser support (more…)
IE8 FF3.5 SA4 OP10 CH2
None None None None None

Syntax

cite="uri"

Description

Apart from the core and event attributes that are used across all HTML elements, q has the cite attribute, which is used to identify the online source of the quotation in the form of a URI (for example, "http://sourcewebsite.doc/document.html"). The value of the cite attribute isn’t rendered on screen (although this potentially useful meta data could be extracted and written back into the web page through the magic of DOM Scripting). As such, browser support for this attribute is marked as none, but because it has other potential uses (for search engine indexing, retrieval via DOM Scripting, and more) and there is the likelihood of improved native support being provided for the attribute in future browser versions, you should use the cite attribute when you use q.

Example

This example shows a quote with the correct attribution in the form of the cite attribute:

<p>Heck, even Bill Gates is quoted as saying <q
    cite="http://microformats.org/blog/2006/03/20/
➥bill-gates-at-mix06-we-need-microformats/">We
    need Microformats,</q> which can only be a
    good thing for the cause.</p>

Value

This attribute takes as its value a URI—the complete path (not a relative path from the quoting page) to the source of the quotation.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
None None None None None None None None None None None None None None None None None

cite is uniformly ignored by all browsers in a visual sense.

User-contributed notes

Related Products