A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/elements/time below:

time · WebPlatform Docs

time Summary

The time tag defines either a time (24 hour clock), or a date in the Gregorian calendar, optionally with a time and a time-zone offset. It does not render differently in any of the major browsers.

This element can be used as a way to encode dates and times in a machine-readable way so that, for example, user agents can offer to add birthday reminders or scheduled events to the user’s calendar.

Overview Table
DOM Interface
HTMLTimeElement

The HTML time element () represents either time on a 24-hour clock or a precise date in the Gregorian calendar (with optional time and timezone information).

This element is intended to be used presenting dates and times in a machine readable format. This can be helpful for user agents to offer any event scheduling for user’s calendar.

Attributes Validity

The datetime value of a time element is the value of the element’s datetime attribute, if it has one, or the element’s textContent, if it does not.

The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below:

Examples
<p>
On <time datetime="1913-03-12">12 March 1913</time>, the city of Canberra
was officially given its name by Lady Denman, the wife of Governor-General
Lord Denman.
</p>
Related specifications
HTML 5.1
W3C Working Draft
HTML 5
W3C Recommendation
See also Related articles HTML External resources

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4