Time Datetime Machine Readable

Encode machine readable timestamps using the time element with datetime attribute for SEO and accessibility.

HtmlData Integrity

Code

htmlsnippet
14 lines
<article>
  <h2>Event Schedule</h2>
  <p>
    Published on
    <time datetime="2026-10-25T09:00:00Z">October 25, 2026 at 9 AM UTC</time>
  </p>
  <p>
    Duration: <time datetime="PT2H30M">2 hours 30 minutes</time>
  </p>
  <p>
    Next occurrence:
    <time datetime="2026-11-01">November 1, 2026</time>
  </p>
</article>

What the code does

The markup uses the semantic elements article and time instead of generic containers, giving assistive technology and search engines real structure without extra wiring.

<time datetime=…> makes the machine-readable date explicit while the visible text stays free-form.

Statements that matter

<h2>Event Schedule</h2>
<time datetime="2026-10-25T09:00:00Z">October 25, 2026 at 9 AM UTC</time>
Duration: <time datetime="PT2H30M">2 hours 30 minutes</time>

Interactive Tools for This Topic

FAQ

Why semantic elements instead of divs?
`<article>`, `<time>` expose document structure to assistive technology and search engines without ARIA or class-name conventions.