The time tag
The time
tag marks text as a date, time, or both. The date can be specified within the tag itself or via the datetime
attribute.
The purpose of this tag is semantic markup. The search engine does not see the neutral span
, but data that it can identify as a date or time.
Also, the point of this tag is that inside it you can insert a date or time (or both) in any format convenient for you, and in the datetime
attribute you can specify the same date in a form convenient for search engines. For example:
<time datetime="2015-03-12">Last Tuesday</time>
:
Attributes
Attribute | Description |
---|---|
datetime |
Specifies the date, time, or both for text. Date and time are specified in the international ISO 8601 format (year-month-day hour:minute:second, see format for details).
|
See also
-
date field,
with which you can enter the date -
datetime field,
with which you can enter the date and time -
month field,
with which you can enter the month -
week field,
with which you can enter the week