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 &lt;time&gt; element which is based on the publication date of the HTML document (it can also be based on the nearest ancestor &lt;article&gt; element)

 

Featured pages

Overview

Learn about HTML5 architecture, design principles and patterns on HTML5 Overview Tutorial. Become …

Tags

Learn about HTML5 tags and discover a new list of HTML5 tags. Find out about HTML5 tags support by…

Welcome

 Learn HTML5 development techniques, tips and tricks on our website. Find out what is required…

Date Time Picker

HTML5 forms use date and time controls regularly. HTML5 date and time controls are used by booking …