Lesson 48 of 55
HTMLThe `<time>` Element – Machine‑readable Dates & Times
8 min
Course progress87%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 48 of 55
HTML8 min
Keep these ideas in mind as you work through the lesson.
<time> Element – Semantic Dates & Times<time> marks dates, times, or durations in a machine‑readable format.
<p>Event starts on <time datetime='2026-09-15T19:30' pubdate>September 15, 2026 at 7:30 PM</time>.</p>
<p>The conference lasted <time datetime='PT8H'>8 hours</time>.</p>
datetime – ISO 8601 string that browsers and search engines can parse.pubdate – Legacy attribute indicating a publication date; modern SEO prefers structured data instead.title – Optional tooltip for human readers.Event schema).PT5M for five minutes) for podcasts or video length.<time>datetime attribute present and ISO‑8601 compliant? ✅pubdate alone for SEO (use JSON‑LD instead)? ✅Tip: When publishing news articles, combine
<time>with JSON‑LDArticleschema for maximum SEO benefit.