← #133 Open all links in new tabs

Use the datetime attribute when displaying dates, times

Topics: HTML

You probably know that the semantic <time> tag can be used to display a date or time. It's recommended to use it with the datetime attribute which brings some benefits:

  • Search engines produce better results
  • It can be used by some devices allowing you to add a reminder or calendar event easily
The meeting will start at <time>09:00</time>

<!-- Better -->
The meeting will start at <time datetime="09:00">09:00</time>
Fix a typo or suggest an improvement
#135 Use multiple SSH keys for different GitHub accounts