← All Exercises

Mark Up Event Dates with time and datetime

basichtml~15min

Background

The time element separates machine-readable dates from display formatting, which helps parsers and assistive technology alike.

Problem

Build an upcoming-events list where every workshop start uses a time element with a valid datetime value while the visible text stays friendly to human readers.

Input

Two workshops with dates, times, and time zones.

Output

An ordered list of events with time datetime attributes.

Sample tests

Sample 1

Input: Crawler parses the event list
Expected: each time element exposes datetime=2026-11-05T18:30:00Z and similar ISO 8601 values

Sample 2

Input: Screen reader reads an event
Expected: the visible date text is announced and the datetime value does not replace it

Your solution

Learning objective

Use the time element and valid datetime values to publish human-readable dates that machines can parse.