HTML and lt;del> datetime properties

HTML del datetime property HTML . . .

You can use the datetime property to set the date and time of text deletion when there is text on the HTML page that is deleted using the hashtag.

A paragraph in which text with time and date has been deleted:

<p>
<del datetime="2011-11-15T22:55:03Z">这是一个被删除了的文本</del>
</p>

Try it out . . .

Browser support

HTML del datetime property HTML del datetime property HTML del datetime property HTML del datetime property HTML del datetime property

No mainstream browser supports the datetime property, but it can be interpreted by screen readers.


Definitions and usages

The datetime property specifies the date and time the text was deleted.


The difference between HTML 4.01 and HTML5

No.


Grammar

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

The property value

Value Describe
YYYY-MM-DDThh:mm:ssTZD

The date and time the text was deleted.

Component interpretation:

  • YYYY - Year (e.g. 2009)
  • MM - Month (e.g. 01 for January)
  • DD - Day of the month (e.g. 08)
  • T - Required separator
  • hh - hours (e.g. 22 for 10.00pm)
  • mm - minutes (e.g. 55)
  • ss - seconds (e.g. 03)
  • TZD - Time Zone Marker (Z for Zulu, also GMT)


HTML del datetime property HTML . . .