Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

time

The <time> element is used to represent dates and times and optionally provides a machine readable version of its content.

Code Example

I hope to get presents at <time datetime="2011-12-25">Christmas</time> time. <time datetime="2011-12-25 10:00:00">Christmas 10am</time> I eat dinner around <time>6:30</time> in the evening.

Attributes

globals - the global attributes common to all elements possible values: see global attribute list datetime - specify a machine readable date and time possible values: "valid global date and time string"

Official Documentation

http://www.w3.org/TR/html/text-level-semantics.html#the-time-element

HTML

Elements

aabbraddressareaasidearticleaudiobbasebdobdiblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldetailsdfndialogdivdldtemembedfieldsetfigcaptionfigurefooterformh1 h2 h3 h4 h5 h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrb rp rt rtc rubyssampscriptsectionselectsmallsourcespanstrongstylesub supsummarytabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr