Latest web development tutorials

HTML ins datetime attribute

HTML ins tag Reference Manual HTML <ins> tag

Examples

Section inserted text, the text is inserted with dates and events:

<p>这是一个文本。
<ins datetime="2012-09-15T22:55:03Z">这是一段插入文本。</ins></p>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

datetime property has no visual effect in an ordinary Web browser, but you can use screen readers.


Definition and Usage

datetime attribute specifies the date and time text is inserted or modified.


Differences between HTML 4.01 and HTML5

no.


grammar

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

Property Value

描述
YYYY-MM-DDThh:mm:ssTZD 规定文本被插入或修改的日期和时间。

组件解释:

  • YYYY - 年(例如 2009)
  • MM - 月(例如 01,表示一月份)
  • DD - 月中的日(例如 08)
  • T - 必需的分隔符
  • hh - 小时(例如 22,表示下午 10.00)
  • mm - 分钟(例如 55)
  • ss - 秒(例如 03)
  • TZD - 时区标志符(Z 表示祖鲁,同时也是格林威治时间)


HTML ins tag Reference Manual HTML <ins> tag