HTML - <time> tag


Description

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

Example

<!Doctype html>
<html>

   <head>
      <title>HTML time Tag</title>
   </head>

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

</html>

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
html_tags_reference.htm
Advertisements