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
<!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