It is A time element with a machine-readable datetime attribute.
Definition and Usage.
The datetime attribute represent a machine-readable format of a <time> element.
<time datetime="YYYY-MM-DDThh:mm:ssTZD">
Value | Description |
---|---|
YYYY-MM-DDThh:mm:ssTZD or PTDHMS |
The date or time being specified. Explanation of components:
|
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The time datetime attribute</h1>
<p>I have a date on <time datetime="2017-02-14 20:00">Valentines day</time>.</p>
<p><b>Note:</b> The time element does not render as anything special in any of the major browsers.</p>
</body>
</html>
How to create HTML <time> Tag | HTML Tag |
How to add HTML <time> datetime Attribute | HTML Tag |
How to add various date and time format in HTML | HTML Tag |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |