The HTML5 time Tag
It is a fact that the HTML5 <time> tag is not supported by the major web browsers like Internet Explorer, Firefox, Safari, Google Chrome and Opera.
The main purpose of the HTML5 <time> tag is to provide the time according to a 24-hour clock. It is also applicable for putting date that is based on the Gregorian calendar. The author has to define the time or time-zone offset.
The HTML5 <time> tag is necessary for the users to be able to take note of important dates in a machine-readable way. It is also useful in getting smart searches.
The HTML5 <time> tag is not recognized by major web browsers but it has support for the Event Attributes and Global Attributes in HTML5.
The <time> tag is a new one that has just been introduced in HMTL5.
Attribute |
Value |
Description |
datetime (New) |
datetime |
It is essential on providing the date or time that is specified by the author. If this is not done, the date or time is based on the element's contents |
pubdate (New) |
pubdate |
It is the one providing the date or time in the <time> element which is based on the publication date of the HTML document (it can also be based on the nearest ancestor <article> element) |