HTML datetime Attribute Example

Example : In this example we demonstrates the <ins> tag to represent inserted or added text, marking the change from “mathematical” to “computer” in the content.

html




<!DOCTYPE html>
<html>
    <head> </head>
 
    <body>
        <h2>HTML ins Tag</h2>
 
        <p>
            w3wiki is a
            <del>mathematical</del>
            <ins datetime="2018-11-21T15:55:03Z">
                computer
            </ins>
            science portal
        </p>
    </body>
</html>


Output: 

HTML datetime Attribute example output

Supported Browsers

The browsers supported by datetime Attribute are listed below: 


HTML datetime Attribute

The HTML datetime attribute specifies the date and time associated with the content, facilitating machine-readable information. It’s commonly used with elements like <time> to provide structured time-related data.

Similar Reads

Syntax

...

Attribute Values

This attribute contains a single value YYYY-MM-DDThh:mm:ssTZD which is used to specify the date and time when the text was deleted....

Applicable

datetime attribute is applicable for:...

HTML datetime Attribute Example

Example : In this example we demonstrates the tag to represent inserted or added text, marking the change from “mathematical” to “computer” in the content....