HTML Tag







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });



HTML <time> Tag



Previous
Complete HTML Reference
Next




Example


How to define a time and a date:



<p>We open at
<time>10:00</time> every morning.</p>

<p>I have a date on
<time datetime="2008-02-14 20:00">Valentines day</time>.</p>

Try it Yourself »



Definition and Usage


The <time> tag defines a human-readable date/time.


This element can also be used to encode dates and times in a
machine-readable way so that user agents can offer to add birthday
reminders or scheduled events to the user's calendar, and search engines can
produce smarter search results.




Browser Support


The numbers in the table specify the first browser version that fully supports the element.



















Element
<time> 6.0 9.0 4.0 5.0 11.1



Differences Between HTML 4.01 and HTML5


The <time> tag is new in HTML5.




Attributes













Attribute Value Description
datetime datetime Represent a machine-readable date/time of the <time> element

Global Attributes


The <time> tag also supports the Global Attributes in HTML.




Event Attributes


The <time> tag also supports the Event Attributes in HTML.




Related Pages


HTML DOM reference: Time Object




Default CSS Settings


None.





Previous
Complete HTML Reference
Next

Popular posts from this blog

Chat program with C++ and SFML

Function to Return a JSON Like Objects Using VBA Collections and Arrays

Will my employers contract hold up in court?