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

Global HTML 5 attributes

  • pubdate (pubdate="pubdate" in XHTML)

    Indicates that the date and time specified by datetime refer to the publication of the parent element (article or the entire document).

  • datetime="YYYY-MM-DDThh:mm:ssTZD"

    Contains the date and time for the element time. If the attribute datetime is used, the element time itself 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>

 

> back to the alphabetical list of elements

   

 

 

 

back to top