Menu
The time
tag, or Date Time element, designates a specific time or datetime.
Use the datetime
attribute to translate the time into a machine-readable format.
<p>We are open on weekdays between <time>9:00 am</time> to <time>5:00 pm</time>.<br>
We will be closed for half a day on <time datetime="2022-12-24 12:00">Christmas Eve</time></p>
datetime
Designates a machine-readable format of the <time>
tag.
Have a code example of <time>
? Submit a codepen.io demo and we'll showcase it here ↴