Open In App

HTML <ins> datetime Attribute

The <ins> datetime Attribute in TML is used to specify the date and time of the inserted text. The date-time is inserted in the format YYYY-MM-DDThh:mm:ssTZD.
Syntax: 
 

<ins datetime="YYYY-MM-DDThh:mm:ssTZD">

Attribute Values: This attribute contains single value YYYY-MM-DDThh:mm:ssTZD which is used to specify the date and time when the text was deleted. 
The explanation of datetime components are listed below: 
 



Example: 
 




<!DOCTYPE html> 
<html
  
<head
    <title>
        HTML ins datetime Attribute 
    </title
      
    <style
        del { 
            color: red; 
        
          
        ins { 
            color: green; 
        
          
        h1 { 
            color: green; 
        
          
        body { 
            text-align: center; 
        
    </style
</head
  
<body
    <h1>GeeksforGeeks</h1
      
    <h2>
        HTML <ins> datetime Attribute
    </h2
  
      
<p>GeeksforGeeks is a 
        <del>mathematical</del
  
        <!-- Assigning id to 
            'ins' tag -->
        <ins id="GFG"
            datetime="2018-11-21T15:55:03Z"
            computer 
        </ins>scienceportal
    </p>
  
</body
  
</html>                    

Output : 
 



Supported Browsers: The browser supported by HTML <ins> datetime Attribute are listed below: 
 

 


Article Tags :