<p>The earthquake hit at <time datetime="2015-04-23T08:25-07:00">8:25am on April 23</time>.</p>
The above example demonstrates usage of the <time>
element with the datetime
attribute.
The <time>
element is used for displaying a time value. The datetime
attribute can be used to provide a representation of the element's contents in a machine-readable format.
In the above example, the element's contents are in a user friendly format, while the value of the datetime
attribute is in a machine-readable format.