How to specify an URL to a document that explains the reason why the text was deleted in HTML ?

The purpose of this article is to learn to specify a URL to a document that will explain, why the text was deleted. The HTML cite attribute specifies a URL to a document that explains the reason why the text was changed or deleted or inserted.

The <del> tag in HTML is used to delete the text and mark a portion of the text which has been deleted from the document. The deleted text is rendered as strikethrough text by the web browsers, although this property can be changed using CSS text-decoration property. The <del> tag requires a starting and ending tag.

Syntax:

<del cite="URL_site"> HTML Contents... </del>

Example:

HTML

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
     <style>
        del {
            color: red;
        }
  
        ins {
            color: green;
        }
    </style>
</head>
  
<body style="text-align:center">
  
    <h1 style="color:green;">
        GeeksforGeeks
    </h1>
  
    <h3>
        How to specify URL of a document 
        that explains the reason why 
        the text was deleted?
    </h3>
  
    <p>GeeksforGeeks is a <del 
        cite="www.geeksforgeeks.org">
        mathematical</del> <ins>computer science</ins
        portal.
    </p>
</body>
</html>

chevron_right


Output:

full-stack-img

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.