HTML <del> datetime attribute

Definition and Usage

datetime The attribute specifies the date and time of the deleted text.

Example

A deleted text, with the date and time of the deletion:

<p>
<del datetime="2023-11-15T21:43:06Z">This text has been deleted.</del>
</p>

Try It Yourself

Syntax

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

Attribute Value

Value Description
YYYY-MM-DDThh:mm:ssTZD

Date and time when the text was deleted.

Description of components:

  • YYYY - Year (e.g., 2023)
  • MM - Month (e.g., 01 represents January)
  • DD - Day of the month (e.g., 08)
  • T or space - Separator (required if time is specified)
  • hh - Hour (e.g., 22 represents 10 PM)
  • mm - Minutes (e.g., 55)
  • ss - Seconds (e.g., 03)
  • TZD - Time Zone Designator (Z stands for Zulu time, also known as Greenwich Mean Time)

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support

Note:datetime Attributes have no visual effect in ordinary web browsers but can be used by screen readers.