Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML del datetime Attribute

HTML datetime property

HTML del Tag Reference HTML tag

Example

A paragraph with text that has a deletion time and date:

This is a piece of deleted text

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browser supports the datetime attribute, but it can be interpreted by screen readers.


Definition and Usage

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


Differences between HTML 4.01 and HTML5

NONE.


Syntax

Attribute values

Value Description
YYYY-MM-DDThh:mm:ssTZD

The date and time when the text was deleted.

Explanation of the components:

  • YYYY - year (for example 2009)
  • MM - month (for example 01 for January)
  • DD - day of the month (for example 08)
  • T - required separator
  • hh - hour (for example 22 for 10.00pm)
  • mm - minute (for example 55)
  • ss - second (for example 03)
  • TZD - time zone designator (Z stands for Zulu, which is also Greenwich Mean Time)
  • |

    HTML del Tag Reference HTML tag