SyntaxStudy
Sign Up

<time>

tag HTML5

Represents a specific time or date. The datetime attribute encodes the value in a machine-readable format.

Syntax

<time datetime="2024-01-15">January 15</time>

Example

html
<p>The event starts on <time datetime="2024-06-15T20:00">June 15 at 8 PM</time>.</p>
<p>Published: <time datetime="2024-01-10">January 10, 2024</time></p>