Horje

How to add A time element with a machine-readable datetime attribute

The time datetime attribute

I have a date on Valentines day.

Note: The time element does not render as anything special in any of the major browsers.

index.html
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>

Output should be:

How to add A time element with a machine-readable datetime attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin