Description:

The HTML <time> tag is used for declaring the date and/or time within an HTML document.

Example Code:
<p>
Our business hours are <time>8:30</time> until <time>4:30</time>
</p> <p>
My holidays start on <time datetime="2018-12-25 00:00">Christmas day</time>.
</p>
Result:
Our business hours are until
My holidays start on .
Attributes:
Attribute Definition
datetime Gives the date/time being specified. Otherwise, the date/time is given by the element's contents
Global Attributes:

The <time> tag also supports the Global Attributes in HTML5

Event Attributes:

The <time> tag also supports the Event Attributes in HTML5



Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.