HTML <time> tag

The <time> tag defines the human readable date or time either in 24-hour format or 12-hour format. The tag is used only to denote the associated time-related texts. It might not be display in ordinary browser, but it helps a lot in SEO.

Type: Inline Element

Syntax of <time> tag

<time> 5:00 am </time>

Supported Browsers

Tag Chrome Internet Explorer Firefox Safari Opera Mini
<time> 6.0 or higher 9.0 or higher 4.0 or higher 5.0 or higher 11.0 or higher

The <time> tag is introduced in HTML5.

Full code example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
 Now, I am busy. Please call me at <time> 4:00 pm </time>.
</p>
</body>
</html>
Run The code »

Output on the browser

Now, I am busy. Please call me at .

Using the <time> tag does not affect visually, but it improves SEO, and helps in screen readers.

More reference

Attribute Value Note
datetime datetime It defines the date and time of the <time> element.
This value is for machines (not human readable).

Example of using datetime attribute

<!-- Date & Time -->
<time datetime="2026-02-14T17:30">
  14 Feb 2026, 5:30 PM
</time>    

<!-- Date -->   
<time datetime="2026-02-14">
  14 February 2026
</time>

<!-- Time -->
<time datetime="17:30">
  5:30 PM
</time>