HTML <del> datetime Attribute
Example
A deleted text, with a date and time of when the text was deleted:
<p>
<del datetime="2011-11-15T22:55:03Z">This text has been deleted</del>
</p>
Try it yourself »
Definition and Usage
The datetime attribute specifies the date and time when the text was deleted.
Browser Support
Attribute | |||||
---|---|---|---|---|---|
datetime | Yes | Yes | Yes | Yes | Yes |
Note: The datetime attribute has no visual effect in ordinary web browsers, but can be used by screen readers.
Differences Between HTML 4.01 and HTML5
NONE.
Syntax
<del datetime="YYYY-MM-DDThh:mm:ssTZD">
Attribute Values
Value | Description |
---|---|
YYYY-MM-DDThh:mm:ssTZD | The date and time of when the text was deleted. Explanation of components:
|
HTML <del> tag