×

html · level 2 · unit 5 · lesson 1

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

<time> shows a date to people and stores one for computers.

Next Saturday, 7/11 and 7th November can all mean the same day, but a computer cannot be sure. Wrap a date in <time> and give it a datetime attribute in a format.

Dates go year, month, day, joined by dashes: 2026-11-07. Times use the 24-hour clock: 18:30. For both together, put a T between them: 2026-11-07T18:30.

The words between the tags can say anything friendly. Search engines and calendar apps read the datetime, so they put your event on the right day.

<p>Bonfire night party:
  <time datetime="2026-11-07T18:30">Saturday 7 November, 6.30pm</time>
</p>

Press show my page to see it here.

Always pad with zeros: March is 03 and the 5th is 05.