HTML <ins> datetimeAttribute

HTML ins 标签参考手册HTML <ins> Tag

Examples

An inserted text, with the date and time when the text was inserted:

<p>This is a text.
<ins datetime="2012-09-15T22:55:03Z">This is an inserted text.</ins></p>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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.


Differences between HTML 4.01 and HTML5

None.


Syntax

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

Attribute Values

Value Description
YYYY-MM-DDThh:mm:ssTZD Specifies the date and time when the text was inserted or modified.

Component explanation:

  • YYYY - year (e.g., 2009)
  • MM - month (e.g., 01, meaning January)
  • DD - day of the month (e.g., 08)
  • T - required separator
  • hh - hour (e.g., 22, meaning 10.00 PM)
  • mm - minute (e.g., 55)
  • ss - second (e.g., 03)
  • TZD - time zone designator (Z means Zulu, which is also Greenwich Mean Time)


HTML ins 标签参考手册HTML <ins> Tag Other extensions