HTML and CSS Reference
In-Depth Information
Name
time
Synopsis
<time> . . . </time>
Not in HTML 4.01
.Represents a time ona 24-hourclock ora date onthe Gregorian calendar,
optionally with time and a time zone offset. The
time
element could be used to pass time and
dateinformation inamachine-readable mannertootherapplications (e.g.,savinganeventtoa
personal calendar) or to restyle time information into alternate formats (e.g., 18:00 to 6 p.m.).
The
time
element is not intended to be used to mark up times for which a precise time or date
cannot be established, such as “the end of last year” or “the turn of the century.”
Usage
Categories:
Flow content, phrasing content, palpable content
Permitted contexts:
Where phrasing content is expected
Permitted content:
Phrasing content
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
pubdate
(
pubdate="pubdate"
in XHTML)
W3C only (not in WHATWG)
. Indicates that the date and time provided by
datetime
is
the publication date and time of the parent element (the
article
or whole document).