HTML time - how to use <time> tag

The HTML <time> tag is used to define a human readable date time. It can also be use to provide machine readable date time which can be used for other purposes.


The time tag supports the global and event attributes.

Defines a machine readable date time


<p>The shop opens at <time>8:00am</time> everyday but is closed on <time datetime="2016-05-01 00:00">Labor day</time>.</p>

Related HTML tags:

  • <> - used to
  • <> - used to
  • <> - used to