Open In App
Related Articles

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

Improve Article
Improve
Save Article
Save
Like Article
Like

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:

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 01 Oct, 2020
Like Article
Save Article
Similar Reads
Related Tutorials