all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

cite attribute | cite property

Sets or retrieves reference information about the object.

Syntax

HTML<element cite="p" ... >
JavaScript

p = object.cite

Property values

Type: String

reference information.

Remarks

This property is designed to contain a Uniform Resource Identifier (URI) that points to information about why a document was changed, or about the source of a quotation.

There is no functionality implemented for this property unless defined by the author.

Windows Internet Explorer 8 or later. In IE8 Standards mode, the value of the cite attribute for the del, ins, and q elements depends on the context of the reference to the attribute. When read as a Document Object Model (DOM) attribute, cite returns an absolute URL. The value specified by the page author is returned when cite is read as a content attribute, when the page is displayed in an earlier document compatibility mode, or when the page is viewed with an earlier version of the browser. For more information, see Attribute Differences in Internet Explorer 8.

cite was introduced in Microsoft Internet Explorer 6.

The value of the cite attribute for the del, ins, and q elements depends on the context of the reference to the attribute. When read as a DOM attribute, cite returns an absolute URL. The value specified by the document author is returned when cite is read as a content attribute, when the document is displayed in an earlier document compatibility mode.

Examples

The example shows the use of the cite property.


<html>
<body>
<q id="greatQuote" cite="http://www.Shakespeare.the.great.com">
To Be or Not to Be, That is the Question.</q>
</body>
</body>

See also

blockQuote
del
ins
q

 

 

Show:
© 2014 Microsoft