Back to Docs

<time>

Description

The <time> HTML element represents a specific period in time or a date. It can include the datetime attribute to translate the friendly human-readable format into a machine-readable date/time (usually in ISO 8601 format). Search engines use this data to accurately parse article publication dates, and browser extensions can extract it to synchronize calendar events automatically.

Code Snippet

<p>
    Event Date:
    <time datetime="2026-12-25">
        December 25, 2026
    </time>
</p>

Static Live Preview

localhost/time-static.html

Upcoming Event:

Interactive Playground

localhost/time-interactive.html