English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Der HTML time-Tag ( <time>) wird verwendet, um2412-Stunden-Zeit oder Gregorianische Datum, falls ein Datum angegeben wird, kann auch die Zeit und der Zeitzone enthalten. Dieser Element soll Daten und Zeit im maschinenlesbaren Format darstellen. Anwendungen mit Terminplanungsfunktionen können dies nutzen.
Wie definiert man Zeit und Datum:
!doctype html <html> <head> <title>HTML5 Verwendung des time-Tags (Grundlagen-Tutorial-Website oldtoolbag.com)</title> <meta charset="UTF-8"> </head> <body> <article> <h1>Überschrift für den Artikel</h1> <pText, der unter dem Artikel erscheint</p> </article> <footer> <pDieser Artikel wurde am <time>veröffentlicht2019-12-28</time>.</p> <p>Unser Geschäft öffnet um <time>08:30</time>.</p> </footer> </body> </html>Testen Sie, um zu sehen ‹/›
Browsers supported by <time>:
IEFirefoxOperaChromeSafari
The <time> tag defines the Gregorian calendar time (24 (in 24-hour format) or date, and the time zone offset is optional.
The element can encode dates and times in a machine-readable way, so that, for example, user agents can add birthday reminders or scheduled events to the user's schedule, and search engines can generate more intelligent search results.
<time> Tag is HTML5 New tags in
New: HTML5 New attribute in
Attribute | Value | Description |
---|---|---|
datetimeHTML5 | datetime | Specify the date/Time. Alternatively, the date is given by the content of the element./Time. |
pubdate | datetime | (This attribute is still being developed by WHATWG and W3(indicating the date in the <time> element). / The time is the publication date of the document (or the nearest ancestor <article> element) |
Support for <time> Tag Global Attributes of HTML.
Support for <time> Tag HTML Event Attributes.