HTML Dog
Skip to navigation

HTML Tag: time

Dates and/or times.

Optional Attributes

Attribute Description Possible values
datetime A representation of the element’s date and time contents. Machine-readable date and/or time (see later).
Global attributes

The machine-readable part of the time element (either its contents or the value of its datetime attribute) can take on various forms:

Example


<p>Juniper was born on <time datetime="2015-5-19 10:18Z">Tuesday 19th May 2015 at 10.18am</time>.</p>