HTML 5 <time> Tag
Example
How to define a time and a date:
<p>
We open at
<time>10:00</time> every morning.
</p>
<p>
I have a date on
<time datetime="2008-02-14">Valentines day</time>
</p> |
View it » |
Definition and Usage
The <time> tag defines a time or a date, or both.
Differences Between HTML 4.01 and HTML 5
The <time> tag is new in HTML 5.
Attributes
New : New in HTML 5.
Attribute |
Value |
Description |
datetimeNew |
datetime |
Defines the date or time of the element. If this attribute
is not defined, the element's date or time must be defined inside the
element. |
Standard Attributes
The <a> tag also supports the Standard Attributes in HTML 5.
Event Attributes
The <a> tag also supports the Event Attributes
in HTML 5.
|