Open In App

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

Improve
Improve
Like Article
Like
Save
Share
Report

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:


Last Updated : 01 Oct, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads