HTML <time> Tag
<time>tag is used for declaring the date and/or time within an HTML document.
- Example Code:
Our business hours are <time>8:30</time> until <time>4:30</time>
My holidays start on <time datetime="2018-12-25 00:00">Christmas day</time>.
Our business hours are until
My holidays start on .
Attribute Definition datetime Gives the date/time being specified. Otherwise, the date/time is given by the element's contents
- Global Attributes:
<time>tag also supports the Global Attributes in HTML5
- Event Attributes:
<time>tag also supports the Event Attributes in HTML5