Summary -

In this topic, we described about the <time> tag along with detailed example.

The <time> tag was introduced in HTML 5. Date and/or time in HTML document. The <time> tag used to specify the date and/or time in an HTML document.

<time> tag displays the date and/or time in human readable format. The tag can be specified like <time></time> with the time in between the opening and closing tags.

The main advantage of the <time> tag is to provide the update time to search engines to crawl the latest one. The time can represent by using <time> tag in many ways.

Syntax -

<time>.... </time>

Example -

<!DOCTYPE html>
<html lang="en">
	<head>
		<title>Time tag example</title>
	</head>
	<body>
		<p>We open <time>24:00</time> hrs every day.</p>
	</body>
</html>

Output -

We open hrs every day.