How to display human readable date in HTML?

HTMLWeb DevelopmentFront End Technology

Use the HTML <time> tag is used for displaying the human-readable date and time. The following is the attribute −

Attribute
Value
Description
datetime
datetime
it is machine readable date time

Example

You can try to run the following code to display time −

<!Doctype html>
<html>
   <head>
      <title>HTML time Tag</title>
   </head>
   <body>
      <p>The time is <time>18:16 pm</time></p>
   </body>
</html>
raja
Published on 14-Mar-2018 07:15:45
Advertisements