Time tag in html

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.


<!DOCTYPE html>
<html>
<body>

<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>

<p><b>Note:</b> The time element does not render as anything special in any of the major browsers.</p>

<p><strong>Note:</strong> The time tag is not supported in Internet 
Explorer 8 and earlier versions.</p>

</body>
</html>

Output:
We open at  every morning.
I have a date on .
Note: The time element does not render as anything special in any of the major browsers.
Note: The time tag is not supported in Internet Explorer 8 and earlier versions.

Comments

Popular posts from this blog

Headings In HTML

Introduction and Format of HTML

Font Tag