Skip to content
Related Articles

Related Articles

Improve Article
How to specify an URL to a document that explains the reason why the text was deleted in HTML ?
  • Last Updated : 01 Oct, 2020

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




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

Output:

My Personal Notes arrow_drop_up
Recommended Articles
Page :