<time>
The time element represents a date, time, or duration in a machine-readable format.
Syntax
<time datetime="ISO">...</time> Examples
<p>Published on <time datetime="2026-05-15">May 15, 2026</time>.</p>
Output
Renders the human-readable date while exposing the ISO value to machines.
Notes
The datetime attribute must use a valid format such as YYYY-MM-DD, an ISO timestamp, or a duration like PT2H. It improves SEO, calendars, and microformats.
Browser & runtime support
| Environment | Since version |
|---|---|
| chrome | 62 |
| firefox | 22 |
| safari | 7.0 |
| edge | 79 |