ins cite attribute

Definition and usage

cite Sets or returns the value of the cite attribute of the inserted text.

<ins> cite attribute Specifies the URL of the document, which explains the reason for inserting/changing the text.

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

See also:

HTML Reference Manual:HTML <ins> Tag

Example

Example 1

Return the URL pointing to the document that explains why the text was inserted:

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

Try it yourself

Example 2

Change the value of the cite attribute:

document.getElementById("myIns").cite = "http://www.example.com/whyweinsertedsometext.htm";

Try it yourself

Syntax

Return the cite attribute:

insObject.cite

Set the cite attribute:

insObject.cite = URL

Attribute value

Value Description
URL

Specifies the source URL of the document, which explains why the text was inserted/changed.

Possible values:

  • Absolute URL - points to another website (such as cite="http://www.example.com")
  • Relative URL - Points to a page within the website (e.g., cite="example.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 <ins> cite Attribute