HTML - <time> tag


The HTML <time> tag is used for displaying the human readable date and time.


<!Doctype html>

      <title>HTML time Tag</title>

      <p>The time is <time>12:51 pm</time></p>


This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Specific Attributes

The HTML <time> tag also supports the following additional attributes −

Attribute Value Description
datetime HTML-5 datetime it is machine readable date time

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes (6.0) Yes (4.0) Yes (9.0) Yes (11.1) Yes (5.0) No