Easy Tutorial
❮ Met Table Insertrow Prop Style Emptycells ❯

cite Attribute of Blockquote

Blockquote Object

Example

Return a citation source:

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

x outputs:


Definition and Usage

The cite attribute is used to set or return the value of the cite attribute of a quotation.

The cite attribute describes the URL source of the quotation.

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


Browser Support

All major browsers support the cite attribute.


Syntax

Return the cite attribute:

Set the cite attribute:

Attribute Values

Value Description
URL The URL of the source of the quotation. Possible values: Absolute URL - points to another website (e.g., cite="http://www.example.com")<br>Relative URL - points to a page within the website (e.g., cite="example.html")

Technical Description

| Return Value: | A string, the URL of the original document. | | --- | --- |


More Examples

Example

Modify the cite attribute value of the quotation:

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

Related Pages

HTML Reference: HTML <blockquote> cite Attribute

Blockquote Object

❮ Met Table Insertrow Prop Style Emptycells ❯