HTML datetime property
Example
A paragraph with text that has a deletion time and date:
This is a piece of deleted text
Try it »
Browser support





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: |
HTML tag