HTML Time Tag
HTML Time Tag
In HTML, the <time> tag is used to represent a specific period in time which is human readable.
- It represents one of the following:
- Time on a 24-hour clock.
- Precise date
- or a valid time duration.
- As
<time>tag is used to encode date and time in a machine-readable format, in that case, the search engine will produce better results of this. - Also,
<time>tag comes under the category of inline elements. - <time > tag has its one important datetime attribute which is used to translate dates into a machine-readable format; allowing custom features such as reminders.
HTML <time> Tag Syntax and Usage
The <time> tag requires the start(opening) tag and end(closing) tag.
Following is the syntax for using the <time> tag in your HTML code:
<time>
..content here
</time>HTML <time> Tag Basic Example
Below we have a basic example showing how we use the HTML <time> Tag.
HTML <time> Tag Attributes
This element supports Global and Event attributes.
Browser Support for HTML <time> Tag
Following browsers support this attribute:
- Google Chrome 6.0+
- Internet Explorer 9.0+
- Firefox 4+
- Opera 11.1+
- Safari 5.0+










