X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Quote cite Property

Quote Object Reference Quote Object

Example

Return the URL of a quotation:

var x = document.getElementById("myQuote").cite;

The result of x will be:

http://www.wwf.org

Try it yourself »


Definition and Usage

The cite property sets or returns the value of the cite attribute of a quotation.

The cite attribute specifies the source URL of a quotation.

Note: The cite attribute has no visual effect in ordinary web browsers, but can be used by screen readers.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The cite property is supported in all major browsers.


Syntax

Return the cite property:

quoteObject.cite

Set the cite property:

quoteObject.cite=URL

Property Values

Value Description
URL Specifies the source URL of the quotation.

Possible values:
  • An absolute URL - points to another web site (like cite="http://www.example.com/page.htm")
  • A relative URL - points to a file within a web site (like cite="page.htm")

Technical Details

Return Value: A String, representing the URL of the source document


More Examples

Example

Change the URL of a quotation:

document.getElementById("myQuote").cite = "http://www.cnn.com/";

Try it yourself »

Related Pages

HTML reference: HTML <q> cite attribute


Quote Object Reference Quote Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook