HTML <time> tag

Html <time> : Definition

• HTML <time> tag is used to define a specific time(24-hour clock) or datetime.

• The <datetime> element specific the translate time into a machine-readable format so that browsers can offer to add date reminders such as birthdaty reminder, anniversary reminder etc through the user's calendar.



Html <time> example

<article>
  <h1>This is the heading for the article</h1>
  <p>This is the paragraph about the article</p>
</article>
<footer>



  <p>This article was published on <time>2013-12-28</time>.</p>
  <p>Our business opens at <time>09:00</time>.</p>
</footer>

Output:


 

This is the heading for the article

This is the paragraph about the article

This article was published on .

Our business opens at .