HTML <del> datetime Attribute
Example
A deleted text, with a date and time of when the text was deleted:
<p>
<del datetime="2015-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.
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
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.