The datetime attribute on a <ins> tag attaches an insertion datetime.
This value is not visible, but it is machine-readable.
An <ins> element with a datetime attribute.
The datetime value signifies when the insertion occurred.
HTTP stands for Hypertext
Translate
Transfer
Protocol.
<p>
HTTP stands for Hypertext
<del>Translate</del>
<ins datetime="2020-10-02T08:11:08Z">Transfer</ins>
Protocol.
</p>
The datetime attribute attaches a date (required) and time (optional) value to an ins element.
Its value is not visible to the user; it only adds a semantic timestamp to the element.
The datetime values are readable by screen readers, search engines, JavaScript code, and others.
<ins datetime="YYYY-MM-DDThh:mm:ssTZD">
VALUE: | YYYY-MM-DDThh:mm:ssTZD |
---|---|
DESCRIPTION: |
The date and time attached to the element. The format can be broken down as follows:
|
EXAMPLES: |
local time 2021-01-18 11:54:41.809 international time 2021-01-18 18:54:41.809Z duration PD18H23M40 |
Here is when datetime support started for each browser:
Chrome
|
1.0 | Sep 2008 |
Firefox
|
1.0 | Sep 2002 |
IE/Edge
|
1.0 | Aug 1995 |
Opera
|
1.0 | Jan 2006 |
Safari
|
1.0 | Jan 2003 |