Articles → HTML 5 → time tag in HTML5

time tag in HTML5






Human readable Vs machine readable information





















Time tag





Syntax


<time>time_specified</time>



Example


<!DOCTYPE html>
<html>
<body>

<p>We will meet at <time>10:00 AM</time> tomorrow. </p>

</body>
</html>





Click to Enlarge


Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
9.04.06.05.011.1Yes



Datetime attribute




<!DOCTYPE html>
<html>
<body>

<p>We will meet at <time datetime="2019-06-02 18:00">10:00 AM</time> tomorrow. </p>

</body>
</html>





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, June 07, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250