Skip to content
The HTML Herbarium

/static/herbario/disruptivo/en/especime/time/

Menu

HTM-014 · Text

<time>

A date or time the machine can read too.

The datetime attribute accepts year, month, week, date, time, zone and duration — one format for each precision. Without it, the element's own content has to be in one of those formats.

It is what lets an aggregator sort texts without guessing whether "03/04" is March or April, and a calendar understand "half an hour" as PT30M.

<p>
  Pressed on <time datetime="2025-06-19">19 June</time>,
  after <time datetime="PT30M">half an hour</time> in the press.
</p>
{esc(legenda)}