<time> tag in HTML5
The <time> tag allows to represent a machine-readable date and/or time within an HTML document.
Important Description
- The <time> tag is new in HTML5.
- The <time> tag defines a human-readable date/time.
- Open and close tag required of <time>.
Example of <time> tag
Result Look Like
The shop will open at every morning.
The seminar starts at .
<time> Tag Browser Support
The <time> tag is not supported in Internet Explorer 8 and earlier versions.
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<time> |
Yes |
Yes |
Yes |
Yes |
Yes |
Version |
6.0 |
9.0 |
4.0 |
5.0 |
11.1 |
Global Attributes
Event Attributes
Attributes
Attribute |
Value |
Description |
datetime |
datetime |
Represent a machine-readable date/time of the <time> element |