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.
or a valid time duration.
<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.
<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.
<time> Tag Syntax and Usage
<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.
<time> Tag Attributes
This element supports Global and Event attributes.
Browser Support for HTML
Following browsers support this attribute:
Google Chrome 6.0+
Internet Explorer 9.0+