HTML <del> datetime Attribute

❮ HTML <del> tag

Example

<p>This text has been <del datetime="2020-01-01T01:01:01Z">deleted</del>.</p>

Meaning

The date and time the deletion was made.

Valid datetime Values:

Possible Values
a valid year string 2011
a valid month string 2011-11
a valid date string 2011-11-18
a valid yearless date string 11-18
a valid week string 2011-W47
a valid time string
  • 14:54
  • 14:54:39
  • 14:54:39.929
a valid local date and time string
  • 2011-11-18T14:54:39.929
  • 2011-11-18 14:54:39.929
a valid global date and time string
  • 2011-11-18T14:54:39.929Z
  • 2011-11-18T14:54:39.929-0400
  • 2011-11-18T14:54:39.929-04:00
  • 2011-11-18 14:54:39.929Z
  • 2011-11-18 14:54:39.929-0400
  • 2011-11-18 14:54:39.929-04:00
a valid duration string PT4H18M3S



Standard Syntax

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



Browser Support




Status







Attribute Values

Value Description
YYYY-MM-DDThh:mm:ssTZD Date and time of when the text was deleted.

Components:

  • YYYY: four-digit year such as 1997
  • MM: two-digit month (01=January, 02=February, and so on.)
  • DD: two-digit day of the month (01,02, and so on.)
  • hh: two-digit hour (00 to 23) (24-hour clock, not AM or PM)
  • mm: two-digit minute (00 to 59)
  • ss: two-digit second (00 to 59)
  • TZD: time zone designator (Z denotes Zulu)
❮ HTML <del> tag