Quote cite attribute
Definition and usage
cite
Sets or returns the value of the cited attribute.
<q> cite attribute Specifies the source URL of the citation.
Note:The cite attribute has no visual effect in ordinary web browsers, but it can be used by screen readers.
HTML Reference Manual:HTML <q> Tag
Example
Example 1
Return the cited URL:
var x = document.getElementById("myQuote").cite;
Example 2
Change the cited URL:
document.getElementById("myQuote").cite = "http://www.ifeng.com/";
Syntax
Return the cite attribute:
quoteObject.cite
Set the cite attribute:<
quoteObject.cite = URL
Attribute value
Value | Description |
---|---|
URL |
Specifies the source URL of the citation. Possible values:
|
Technical Details
Return Value: | String value representing the URL of the source document. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |
Related Pages
HTML Reference Manual:HTML <q> cite Attribute