HTML
Example
A time element specifying a date:
<
p
I am
<
time
datetime
=
"
2008-02-14
"Valentine's Day
time
have a date.
p
Try it »
Browser support





The datetime attribute does not render any special effect in any browser.
Definition and Usage
the datetime property specifies a date or time. This property is used when no date or time is specified in the content of the element.
Differences between HTML 4.01 and HTML5
Syntax
Attribute values
| Value | Description |
|---|---|
| YYYY-MM-DDThh:mm:ssTZD |
Date or time. The components are explained below: |
HTML