XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / time
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
time
HTML 5 |
<time> ... </time>
Marks a time in 24-hour format and/or a date in the Gregorian calendar. The element time can pass time and date information to other programs in a machine-readable format, for example to save an event in a personal calendar, or display time information in alternative formats, such as 6 p.m. instead of 18:00 h. The element time is not intended to mark up temporal references without a precise time or date, such as “late last year” or “around the turn of the century”.
Notes
HTML 5 only.
Start/end tag
Required/required
Attributes
pubdate(pubdate="pubdate"in XHTML)Indicates that the date and time specified by
datetimerefer to the publication of the parent element (articleor the entire document).datetime="YYYY-MM-DDThh:mm:ssTZD"Contains the date and time for the element
time. If the attributedatetimeis used, the elementtimeitself may be empty.
Examples
Der letzte Abgabetermin ist: <time datetime="2010-09-01T20:00-05:00">1. September, 2010, 20:00h MESZ</time>
Öffnungszeiten: <time>08:00h</time> bis <time>21:00h</time>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de