Tutorialspoint

1 Answer
Ankith Reddy

The cite attribute of the <ins> element is used to set a URL that specified the reason to insert the text. Following is the syntax −

<ins cite="url">

Above, we have set url, which is the address to the document explaining the reason to insert the text. Let us now see an example to implement the cite attribute of the <ins> element −

Example

 Live Demo

<!DOCTYPE html>
<html>
<body>
<h1>Demo Heading</h1>
<ins cite="new.htm">Text is inserted.</ins>
</body>
</html>

Output

In the above example, we have inserted a text using the <ins> element −

<ins cite="new.htm">
   Text is inserted.
</ins>

Above, we have set the reason of insertion using the cite attribute −

cite="new.htm

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.