Skip to content
Related Articles

Related Articles

Improve Article

HTML <time> Tag

  • Last Updated : 16 Jul, 2021

The <time> tag is used to display the human-readable date/time. It can also be used to encode dates and times in a machine-readable form. The main advantage for users is that they can offer to add birthday reminders or scheduled events in their calendar’s and search engines can produce smarter search results.


<time attribute> Time... </time>

Attributes: This tag contains a single attribute datetime which is used to define the date/time in a machine-readable form of the <time> element.


<!DOCTYPE html>
        <h2><time> Tag</h2>
<p>I Wake up at <time>6.00</time> in every morning.</p>
<p>Jawahar lal Nehru birthday is celebrated on
        <time datatime="2018--11-14 12:00">children's day.</time>


Supported Browsers:

  • Google Chrome 6.0 and above
  • Internet Explorer 9.0 and above
  • Firefox 4.0 and above
  • Opera 11.1 and above
  • Safari 5.0 and above

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :