HTML time tag

The HTML time tag is used to represent date or time. The main advantage of using time tag is that it can also be used to encode date/time in machine-readable format so that the user agent can offer to add events and reminders. This tag was introduced in HTML 5.


The <time> tag supports all HTML Global attributes.

datetimeThis attribute is used to specify date / time of the element.


<p>John's birthday is on <time datetime="1987-04-10">10-April-1987</time></p>
<p>The meeting starts at <time>10:30</time> AM</p>


John’s birthday is on

The meeting starts at AM

Leave a Reply

Your email address will not be published.Required fields are marked *