English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
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 ‹/›
IEFirefoxOperaChromeSafari
The datetime attribute is not supported by any mainstream browsers, but it can be interpreted by screen readers.
The datetime attribute specifies the date and time when the text was deleted.
NONE.
<del datetime="YYYY-MM-DDThh:mm:ssTZD">
Value | Description |
---|---|
YYYY-MM-DDThh:mm:ssTZD | The date and time when the text was deleted. Component Explanation:
|