In this example, We will inform you about the <time> tag in html5. The <time> tag is used to define the date time in the html document. We can define date, time or date&time both by using this tag in the html document.
The syntax of <time> tag is as:
|<time datetime="value"> Text Here</time>|
This tag is new introduction in html5. This tag have a specific attribute "datetime" is as:
datetime="value" The value of the attribute must be valid date or time. This attribute specify the date and time.
The date or time must be in standard format
<title>Example of Time Tag</title>
<body>The Timing of the meeting<br>
is <time datetime="2010-09-16">6pm at delhi house.</time>
difference between html4.01 and html5:
This is new introduction in html5.
Posted on: September 17, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles