time
I. Description
The
HTML
<time>
element should contain date or time information. This can mean
just a date, such as April 5th, 2025; or a time, such as 3:15pm; or both such as 2025-APR-05 15:15 UTC.
Whenever you have a date or time in a webpage it should be inside of a
<time>
element.
By using the
<time>
element you allow search engines to better understand the content of your
website.
II. Examples
<!DOCTYPE html>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>Town Council Meeting Time</h1>
<p>The town council meeting shall start at <time>12:00pm on July 1st, 2025</time>.</p>
</body>
</html>
This document was last updated: