HTML cite Attribute


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

Updated on: 30-Jul-2019

136 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements