Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

HTML <del> Tag

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The <del> tag in HTML stands for delete and is used to mark a portion of text which has been deleted from the document. The deleted text is rendered as strike-through 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.

Attributes: The <del> tag contains two attributes which are listed below: 

  • cite: It is used to specify the URL of the document or message which denotes the reason for deleting the text.
  • datetime: It is used to specify the date and time of the deleted text.

Syntax:

<del> Contents... </del>

Example 1: Below example illustrate the <del> element in HTML:

HTML




<!DOCTYPE html>
<html>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2>HTML del Tag</h2>
        <!-- HTML del tag is used in paragraph Tag -->
         
 
 
<p>GeeksforGeeks is a <del>mathematical</del>
           science portal</p>
 
 
   
    </body>
</html>                   


Output: 
 

Example 2: This example use the <del> tag with the datetime attribute.  

HTML




<!DOCTYPE html>
<html>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2>HTML del Tag</h2>
        <!-- HTML del tag is used in paragraph Tag -->
         
 
 
<p>GeeksforGeeks is a <del>mathematical</del>
           science portal</p>
 
 
   
    </body>
</html>                   


Output: 
 

Supported Browsers: 

  • Google Chrome 
  • Internet Explorer
  • Firefox 1 and above
  • Opera 
  • Safari 
  • Edge 12 and above
     

My Personal Notes arrow_drop_up
Last Updated : 21 Jul, 2022
Like Article
Save Article
Similar Reads