English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This article introduces the HTML del datetime attribute that specifies the date and time the text was 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, as well as the date and time of the deleted text:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <del> datetime attribute usage-基础教程(oldtoolbag.com)</title> </head> <body> <p><del datetime="2019-12-15T12:25:12This text has been deleted/del></p> </body> </html>Prueba para ver ‹/›
IEFirefoxOperaChromeSafari
No hay compatibilidad con el atributo datetime en los navegadores principales, pero puede ser interpretado por los lectores de pantalla.
La propiedad datetime de HTML especifica la fecha y hora del texto eliminado.
NONE.
<del datetime="YYYY-MM-DDThh:mm:ssTZD">
Valor | Descripción |
---|---|
YYYY-MM-DDThh:mm:ssTZD | Fecha y hora del texto eliminado. Explicación del componente:
|