HTML <time> Tag
The time tag is an HTML5 element that in the HTML document provides either a time value (on a 24-hour clock) or a date (in the Gregorian calendar).
This tag is sometimes referred to as the <time> element.
This element's datetime property is used to convert the time into a machine-readable format so that browsers may offer to add date reminders through the user's calendar and search engines can provide better search results.
Syntax
Attributes
| Attribute | Value | Description |
|---|---|---|
| datetime | datetime | Represent a machine-readable <time> element format. |
Supported Browsers
| Element | Chrome | Firefox | Safari | Edge / IE | Opera |
|---|---|---|---|---|---|
| <time> | Yes | Yes | Yes | Yes | Yes |