HTML <del> datetimeAttribute

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

Examples

A paragraph with text that has been deleted with the date and time:

<p><del datetime="2011-11-15T22:55:03Z">This is deleted text</del></p>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browser supports the datetime attribute, but it can be interpreted by screen readers.


Definition and Usage

The datetime attribute specifies the date and time when the text was deleted.


Differences Between HTML 4.01 and HTML5

NONE.


Syntax

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

Attribute Values

Value Description
YYYY-MM-DDThh:mm:ssTZD

The date and time when the text was deleted.

Component explanation:

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


HTML del 标签参考手册HTML <del> Tag Other Extensions