HTML <ins> datetime Attribute
Example
An inserted text, with a date and time of when the text was inserted:
<p>This is a text.
<ins datetime="2012-09-15T22:55:03Z">This is an inserted text.</ins></p>
Try it yourself »
Definition and Usage
The datetime attribute specifies the date and time of when the text was inserted/changed.
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
<ins datetime="YYYY-MM-DDThh:mm:ssTZD">
Attribute Values
Value | Description |
---|---|
YYYY-MM-DDThh:mm:ssTZD | Specifies the date and time of when the text was inserted/changed. Explanation of components:
|
HTML <ins> tag