HTML <ins> with datetime Attribute

You are Here:

HTML <ins> with datetime Attribute

The datetime attribute specifies the date and time when the text was changed/inserted.

Note: The value of datetime attribute must be a valid date with an optional time string.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <p>I Like <del>red</del> <ins datetime="2019-11-10T20:50:05Z">blue</ins></p> </body> </html>

Attribute Value

ValueExplanation
YYYY-MM-DDThh:mm:ssTZDSpecifies the date and time when the text was changed/inserted.

Format expansion
YYYY
year (e.g. 2018)
MM
month (e.g. 01 for January)
DD
Date (e.g. 31)
T
Seperator
hh
hour 24 hours timing(e.g. 20 for 08.00pm)
mm
minutes (e.g. 05)
ss
seconds (e.g. 59)
TZD
Time Zone Designator (GMT - Greenwich Mean Time)

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author