HTML Time and Dates

  • Whenever you want to display a time or date in HTML then you should wrap it in a time tag and use the datetime attribute.
<p>
  The movie &#8220;Lock, Stock, and Two Smoking Barrels&#8221; was released
  <time datetime="1998-08-28">28 August, 1998</time>
</p>
  • The datetime attribute will be read and understood by search engines and other html parsing tools.
Last Updated: : 8/24/2019, 10:01:15 AM