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-Referenzhandbuch: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")
  • Relativer URL - Verweist auf eine Seite innerhalb der Website (z.B. cite="example.html"))

Technische Details

Rückgabewert: Zeichenfolgenwert, der die URL des Quelldokuments angibt.

Browserunterstützung

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Unterstützung Unterstützung Unterstützung Unterstützung Unterstützung

Verwandte Seiten

HTML-Referenzhandbuch:HTML <ins> cite-Attribut