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 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.

 HTML <del> etiqueta

Online example

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 ‹/›

Compatibilidad del navegador

IEFirefoxOperaChromeSafari

No hay compatibilidad con el atributo datetime en los navegadores principales, pero puede ser interpretado por los lectores de pantalla.

Definición y uso

La propiedad datetime de HTML especifica la fecha y hora del texto eliminado.

HTML 4.01 con HTML5las diferencias

NONE.

Sintaxis

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

Valor del atributo

ValorDescripción
YYYY-MM-DDThh:mm:ssTZD

Fecha y hora del texto eliminado.

Explicación del componente:

  • YYYY - Año (por ejemplo 2009)

  • MM - Mes (por ejemplo 01 para enero)

  • DD - Día del mes (por ejemplo 08)

  • T - Símbolo de separación obligatorio

  • hh - Horas (por ejemplo 22 para 10.00pm)

  • mm - Minutos (por ejemplo 55)

  • ss - Segundos (por ejemplo 03)

  • TZD - Símbolo de zona horaria (Z representa Zulú, también es la hora de Greenwich)

 HTML <del> etiqueta