English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Comprehensive HTML tags

HTML ins datetime attribute

The datetime attribute specifies the date and time when the text was inserted or modified, and the datetime attribute will not display any special content in any mainstream browser.

 HTML <ins> tag

Online Example

Inserted text, as well as the date and time of the inserted text:



-8">
The use of the HTML <ins> datetime attribute-Basic Tutorial (w3/
</

This is a text.
2019-12-25T12152This is an inserted text./ins></p>
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

The datetime attribute has no visual effect in ordinary web browsers, but can be used by screen readers.

Definition and Usage

The datetime attribute specifies the date and time when the text was inserted or modified.

HTML 4.01 with HTML5differences

None.

Syntax

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

Attribute Value

ValueDescription
YYYY-MM-DDThh:mm:ssTZDSpecify the insertion/Change the date and time of the text.
Component Description:
  • YYYY - Year (for example 2009)

  • MM - Month (for example 01, indicating January)

  • DD - Day of the month (for example  08)

  • T - Required separator

  • hh - Hours (for example 22, indicating PM 10.00)

  • mm - Minutes (for example 55)

  • ss - Seconds (for example 03)

  • TZD - Time zone designator (Z represents Zulu, and also Greenwich Mean Time)

 HTML <ins> tag