time

英[taɪm] 美[taɪm]

n.Time; time; era; time

vt. Arrange for... time; measure the time of...; adjust the (mechanical) speed; set the speed of the (clock, watch)

vi. in tune; harmonious; beat

adj. Timing; regular of;[American English]Instalment (payment)

int.[Sports]Time is up, (a game or a game, etc.) game time limit, suspended

html5<time> tag syntax

Function: The <time> tag defines the Gregorian time (24-hour clock) or date. The time and time zone offset are optional.

This element can encode the date and time in a machine-readable way so that, for example, user agents can add birthday reminders or scheduled events to the user's calendar, and search engines can generate Smarter search results.

Parameters:

Attributes
ValueDescription
datetimedatetimeSpecifies the date/time. Otherwise, the date/time is given by the element's content.
pubdatepubdateIndicates that the date/time in the <time> element is the publication date of the document (or <article> element) .

html5<time> tag example

<!DOCTYPE HTML>
<html>
<body>

<p>
我们在每天早上 <time>9:00</time> 开始营业。
</p>

<p>
我在 <time datetime="2010-02-14">php中文网</time> 有个约会。
</p>

</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance