Skip to main content

html-tags.com

<time>

A date, time, or duration with a machine-readable datetime attribute.

Baseline: Widely available · Inline text semantics

When to use it

For every date and duration on a page — search engines read the datetime (2026-07-24, PT45M) while humans read the prose.

When not to

Don't skip the datetime when the content isn't already machine-parseable, and don't use it for vague times ('the olden days').

Key attributes

datetime
ISO date, time, or duration

Example

Published ; bake for .

<p>Published <time datetime='2026-07-24'>July 24, 2026</time>; bake for <time datetime='PT45M'>45 minutes</time>.</p>
Rendered live above, source below.

Authoritative references