Blockquote cite attribute
Definition and usage
cite
Sets or returns the value of the cited attribute.
<blockquote> cite attribute Specifies the source URL of the citation.
Note:The cite attribute has no visual effect in common web browsers, but it can be used by screen readers.
See also:
HTML Reference Manual:HTML <blockquote> Tag
Example
Example 1
Return the cited URL:
var x = document.getElementById("myBlockquote").cite;
Example 2
Change the cited URL:
document.getElementById("myBlockquote").cite = "http://www.cnn.com/";
Syntax
Return the cite attribute:
blockquoteObject.cite
Set the cite attribute:
blockquoteObject.cite = URL
Attribute value
Value | Description |
---|---|
URL |
Specifies the source URL of the citation. Possible values: Absolute URL - Points to another website (such as cite="http://www.example.com/page.html") Relative URL - Points to a file within the website (e.g., cite="page.html")) |
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 <blockquote> cite Attribute