English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag大全

HTML del datetime attribute

This article introduces the HTML del datetime attribute that specifies the date and time when the text is deleted. Online examples demonstrate how to use the HTML del datetime attribute, browser compatibility, syntax definition, and detailed information about its attribute values.

 HTML <del> tag

Online Example

Deleted text and the date and time of the deleted text:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML <del> datetime attribute usage-Basic Tutorial(oldtoolbag.com)</title>
</head>
<body>
<p><del datetime="2019-12-15T12:25:12This text has been deleted/del></p>
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

The datetime attribute is not supported by any mainstream browsers, but it can be interpreted by screen readers.

Definition and Usage

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

HTML 4.01 With HTML5The difference

NONE.

Syntax

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

Attribute Value

ValueDescription
YYYY-MM-DDThh:mm:ssTZD

The date and time when the text was deleted.

Component Explanation:

  • YYYY - Year (for example 2009)

  • MM - Month (for example 01 for January)

  • DD - Day of the month (for example 08)

  • T - Required separator

  • hh - Hours (for example 22 for 10.00pm)

  • mm - Minutes (for example 55)

  • ss - Seconds (for example 03)

  • TZD - Time zone designator (Z represents Zulu, and also Greenwich Mean Time)

 HTML <del> tag